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