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