Annotation of parser3/INSTALL, revision 1.48
1.33 paf 1: 0.Assuming your perform your builds in $HOME directory
1.1 paf 2: and suggested subdirectories.
3:
1.33 paf 4: 1.What is the process to compile Parser3?
5:
6: First, you must have LIBGC installed (conservative garbage collector for C++).
1.41 paf 7: libgc >= 6.6
1.33 paf 8:
1.41 paf 9: Installation sequence of this library:
1.33 paf 10:
1.45 paf 11: mkdir $HOME/parser3project
1.44 paf 12: mkdir $HOME/parser3project/src
13: cd $HOME/parser3project/src
14: wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc6.6.tar.gz
15: gunzip -c gc6.6.tar.gz | tar vxf -
1.41 paf 16: cd gc6.6
1.48 ! paf 17: CPPFLAGS=USE_LIBC_PRIVATES \
1.44 paf 18: ./configure --prefix=$HOME/parser3project/gc --disable-threads --disable-shared --silent
1.33 paf 19: make install
20:
1.44 paf 21: Then you can use these Parser3 configure options to use that statically compiled gc:
1.43 paf 22: --with-static-gc=$HOME/parser3project/gc/lib
1.44 paf 23: In case you already have libgc.so and want to link parser against it,
24: you can this Parser3 configure option:
25: --with-shared-gc=/path/to/gc/lib
1.1 paf 26:
1.38 paf 27: NOTE:
28: On some platforms there is special version of libgc patched to support some
29: local piece of subtlety.
30: Official libgc does not work there, use special version instead.
31: (OpenBSD reported to be one of those)
32:
1.3 paf 33: As most UNIX programs Parser3 follows the "standard":
1.1 paf 34:
1.43 paf 35: mkdir $HOME/parser3project
36: cd $HOME/parser3project
1.3 paf 37: gunzip -c parser3-x.x.tar.gz | tar xvf -
38: mv parser3-x.x parser3
1.2 paf 39: cd parser3
1.39 paf 40: ./configure --prefix=$HOME/parser3install --silent
1.2 paf 41: make
42:
1.3 paf 43: That renaming is needed for SQL drivers to be able to find
44: necessary include-file in Parser3 sources.
45:
1.10 paf 46: NOTE:
47: On some system you should run 'gmake'.
1.7 paf 48:
1.10 paf 49: NOTE:
1.1 paf 50: By default your would get 'parser3' binary without support of these features:
1.44 paf 51: * xml(xdoc and xnode classes)
1.10 paf 52: Read section (3) on getting xml-abled parser.
1.1 paf 53:
1.17 paf 54:
1.18 paf 55: Read section (4) on configure options.
1.10 paf 56:
1.2 paf 57: 2.What is the process to install Parser3?
58:
59: make install
60:
1.1 paf 61: Installation layout:
62: $prefix/bin/
63: parser3 -- CGI and command line Parser3 interpreter
1.22 paf 64: auto.p.dist -- configuration file sample,
65: copy it to auto.p and adjust to your needs
1.1 paf 66: $prefix/etc/
67: parser3.charsets/ -- charset definition files
1.2 paf 68: koi8-r.cfg -- cyrillic charset [KOI8-R encoding]
1.33 paf 69: windows-1250.cfg -- central europian charset [windows-1250 encoding]
1.5 paf 70: windows-1251.cfg -- cyrillic charset [windows-1251 encoding]
71: windows-1257.cfg -- baltic charset [windows-1257 encoding]
1.2 paf 72:
1.10 paf 73: 3.What other libraries are needed to compile/install parser?
1.1 paf 74:
1.33 paf 75: 3a. In case you wish XML(xdoc and xnode classes) support, you need libraries
1.41 paf 76: libxml2 >= 2.6.22
77: libxslt >= 1.1.15
1.1 paf 78: on your system, and specify path to them to Parser3 configure script.
79:
1.33 paf 80: Sources of libgdome library must be patched prior to compile. [library author bug confirmation pending]
1.1 paf 81:
1.43 paf 82: Installation sequence of these libraries to $HOME/parser3project/gnome:
1.1 paf 83:
1.31 paf 84: libxml2:
1.1 paf 85:
1.44 paf 86: cd $HOME/parser3project/src
1.45 paf 87: mkdir $HOME/parser3project
88: wget --passive-ftp ftp://xmlsoft.org/libxml2-2.6.22.tar.gz
1.44 paf 89: gunzip -c libxml2-2.6.22.tar.gz | tar vxf -
1.41 paf 90: cd libxml2-2.6.22
1.45 paf 91: #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?] xptr[xinclude]-- needed!
1.44 paf 92: ./configure --prefix=$HOME/parser3project/gnome \
1.45 paf 93: --without-iconv --without-threads --without-debug \
1.44 paf 94: --without-iso8859x --without-legacy \
95: --without-pattern --without-push --without-python \
96: --without-reader --without-writer --without-readline --without-regexps \
97: --without-schemas --without-schematron \
98: --without-modules \
99: --without-zlib \
100: --disable-shared --silent
101: echo "int main(){return 0;}">testapi.c
102: echo "int main(){return 0;}">runtest.c
1.1 paf 103: make install
104:
1.31 paf 105: libxslt:
1.1 paf 106:
1.44 paf 107: cd $HOME/parser3project/src
1.45 paf 108: wget --passive-ftp ftp://xmlsoft.org/libxslt-1.1.15.tar.gz
1.44 paf 109: gunzip -c libxslt-1.1.15.tar.gz | tar vxf -
1.41 paf 110: cd libxslt-1.1.15
1.44 paf 111: ./configure --with-libxml-prefix=$HOME/parser3project/gnome --prefix=$HOME/parser3project/gnome --without-debug --without-debugger --without-crypto --without-plugins --disable-shared --silent
1.1 paf 112: make install
113:
114:
1.9 paf 115: Parser3 configure options, choose whether you need static or dynamic linkage with xml libs:
1.43 paf 116: --with-static-xml=$HOME/parser3project/gnome
117: --with-shared-xml=$HOME/parser3project/gnome
1.1 paf 118:
1.5 paf 119: NOTE:
1.24 paf 120: In case you are using SHARED xml libraries, you may want to link in direct path to them,
121: use this key to specify which linker key to use do do that:
122: --with-pathlink=LKEY put dynamic libraries paths to binary
123: using linker key (-R, -rpath-link)
124:
1.45 paf 125: Sample:
126: cd $HOME/parser3project/parser3
127: ./configure --prefix=$HOME/parser3install \
128: --with-static-gc=$HOME/parser3project/gc/lib \
129: --with-static-xml=$HOME/parser3project/gnome \
130: --with-sendmail="/usr/sbin/sendmail -i -t -f postmaster" \
131: --silent
132: make install
133:
1.33 paf 134: 3b. In case you wish $mail:receive support you need libraries
1.41 paf 135: glib >= 1.2.10
1.39 paf 136: gmime >= 1.0.1 [http://spruce.sourceforge.net/gmime/sources/v1.0/gmime-1.0.8.tar.gz]
1.24 paf 137: on your system, and specify path to them to Parser3 configure script.
138:
1.31 paf 139: glib:
1.24 paf 140:
1.44 paf 141: cd $HOME/parser3project/src
1.41 paf 142: #on freebsd5 this is reported to work: ftp://ftp.gtk.org/pub/gtk/v1.1/glib-1.1.16.tar.gz
1.45 paf 143: wget --passive-ftp ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz
1.44 paf 144: gunzip -c glib-1.2.10.tar.gz | tar vxf -
1.41 paf 145: cd glib-1.2.10
1.43 paf 146: ./configure --prefix=$HOME/parser3project/gnome --silent
1.24 paf 147: make install
148:
1.31 paf 149: gmime:
1.24 paf 150:
151: cd gmime-x.x.x
1.43 paf 152: ./configure --prefix=$HOME/parser3project/gnome
1.24 paf 153: make install
154:
155: Parser3 configure options, choose whether you need static or dynamic linkage with xml libs:
1.43 paf 156: --with-static-mailreceive=$HOME/parser3project/gnome
157: --with-shared-mailreceive=$HOME/parser3project/gnome
1.24 paf 158:
159: NOTE:
160: In case your glib as installed into some other prefix,
161: specify it's configuration file with
162: --with-glib-config=/path/to/your/glib-config
163: NOTE:
164: In case you are using SHARED mime library, you may want to link in direct path to it,
1.33 paf 165: use this key to specify which linker key to use do do that:
1.9 paf 166: --with-pathlink=LKEY put dynamic libraries paths to binary
167: using linker key (-R, -rpath-link)
168:
1.18 paf 169: 4.
170:
171: In case you're not root on machine you're installing Parser,
172: we recommend you to do:
1.43 paf 173: ./configure --prefix=$HOME/parser3install
174: and afterwards copy $HOME/parser3install/bin/parser3 to your CGI directory
1.18 paf 175: or make a symlink [if your web server configured to follow symlinks].
176:
177: You can disable any exec operations by setting
178: --disable-execs
179: option to configure.
180: file::exec, file::cgi and mail:send (unix version) methods would be disabled.
181:
1.29 paf 182: You can enable reading and executing files, not belonging to group+user
183: other then effective by setting
184: --disable-safe-mode
1.18 paf 185: option to configure.
186:
187: You can disable user-configured sendmail commands by forcing it, setting
1.41 paf 188: --with=sendmail="COMMAND"
189: option to configure, for example:
190: --with-sendmail="/usr/sbin/sendmail -i -t -f postmaster"
1.26 paf 191:
192: In case you are experiencing problem with gcc runtime exception handling,
193: try to configure with
194: --with-sjlj-exceptions
195: option.
1.18 paf 196:
1.33 paf 197: By default libstdc++ is linked statically, you can re-enable dynamic libstdc++ linkage by specifying
198: --with-dynamic-stdcpp
199: option to configure.
200:
201:
1.18 paf 202: Some root config options can be specified at configure time, and would override autodetects.
203:
204: List of enabled charsets:
205: --with-charsets=CHARSET[,CHARSET,...] Enables charsets in root config (windows-1251,
206: windows-1250 windows-1257 koi8-r; Default is windows-1251)
207: SQL clients:
1.21 paf 208: --with-mysql-client=mysqlclientlib?params
209: --with-pgsql-client=pgsqlclientlib?params
210: --with-oracle-client=oracleclientlib?params
1.18 paf 211:
1.37 paf 212: 5.
213: If you need to build apache 1.3 parser module, get source distribution of apache 1.3,
214: run configure there, then run parser configure with one more option:
215: --with-apache13=Apache13 source distribution directory
216: after 'make' go to that directory and run
217:
218: ./p3runConfigure <any additional options to apache configure to pass>
219:
220: example:
1.46 paf 221: ./p3runConfigure --prefix=$HOME/apache13install --enable-module=rewrite
1.37 paf 222:
223: WARNING: if you want to use apache configure option --enable-shared=max, do this:
224: ./p3runConfigure --enable-shared=max --disable-shared=mod_parser3.c
225:
1.4 paf 226: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1 paf 227:
1.48 ! paf 228: $Id: INSTALL,v 1.47 2005/12/16 10:18:08 paf Exp $
E-mail: