--- parser3/INSTALL 2002/06/18 15:16:15 1.21 +++ parser3/INSTALL 2003/01/09 17:06:45 1.30 @@ -34,8 +34,8 @@ Installation layout: $prefix/bin/ parser3 -- CGI and command line Parser3 interpreter - parser3.conf.dist -- configuration file sample, - copy it to parser3.conf and adjust to your needs + auto.p.dist -- configuration file sample, + copy it to auto.p and adjust to your needs $prefix/etc/ parser3.charsets/ -- charset definition files koi8-r.cfg -- cyrillic charset [KOI8-R encoding] @@ -45,11 +45,10 @@ 3.What other libraries are needed to compile/install parser? - * You can compile and use parser without any additional libraries. +3a. You can compile and use parser without any additional libraries. That would be 'basic' version of it. - - * In case you wish xml(xdoc and xnode classes) support you need libraries +3b. In case you wish xml(xdoc and xnode classes) support you need libraries libxml2 >= 2.4.11 libxslt >= 1.0.9 glib >= 1.2.10 @@ -62,22 +61,22 @@ Installation sequence of these libraries to $D/gnome: - libxml2: [ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/libxml2-2.4.12.tar.gz] + libxml2: [ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.4/libxml2-2.4.12.tar.gz] cd libxml2-x.x.x - patch -p0 < $D/parser3project/parser3/src/patches/libxml_error_column_tab.patch - patch -p0 < $D/parser3project/parser3/src/patches/libxml_htmloutput_of_xslemptyattr_emptyquotes.patch - patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context1.patch - patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context2.patch - patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context3.patch - patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context4.patch - ./configure --prefix=$D/gnome --without-zlib + patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_error_column_tab.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_htmloutput_of_xslemptyattr_emptyquotes.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_transcoder_context1.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_transcoder_context2.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_transcoder_context3.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_transcoder_context4.patch + ./configure --prefix=$D/gnome --without-zlib --without-iconv make install - libxslt: [ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxslt/libxslt-1.0.9.tar.gz] + libxslt: [ftp://ftp.gnome.org/pub/GNOME/sources/libxslt/1.0/libxslt-1.0.9.tar.gz] cd libxslt-x.x.x - patch -p0 < $D/parser3project/parser3/src/patches/libxslt_html_output_no_charset_meta.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libxslt_html_output_no_charset_meta.patch ./configure --with-libxml-prefix=$D/gnome --prefix=$D/gnome --without-debug --without-debugger make install @@ -87,12 +86,12 @@ ./configure --prefix=$D/gnome make install - gdome2: [http://phd.cs.unibo.it/gdome2/tarball/gdome2-0.7.0.tar.gz] + gdome2: [http://gdome2.cs.unibo.it/tarball/gdome2-0.7.0.tar.gz] cd gdome2-x.x.x - patch -p0 < $D/parser3project/parser3/src/patches/libgdome_cpp_syntax1.patch - patch -p0 < $D/parser3project/parser3/src/patches/libgdome_cpp_syntax2.patch - patch -p0 < $D/parser3project/parser3/src/patches/libgdome_morestatic.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libgdome_cpp_syntax1.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libgdome_cpp_syntax2.patch + patch -p0 < $D/parser3project/parser3/src/lib/patches/libgdome_morestatic.patch ./configure --with-glib-prefix=$D/gnome --disable-glibtest --with-libxml-prefix=$D/gnome --prefix=$D/gnome make install @@ -111,8 +110,41 @@ In case your glib as installed into some other prefix, specify it's configuration file with --with-glib-config=/path/to/your/glib-config - NOTE: - In case you are using SHARED xml libraries, you may want to link in direct path to them, + NOTE: + In case you are using SHARED xml libraries, you may want to link in direct path to them, + use this key to specify which linker key to use do do that: + --with-pathlink=LKEY put dynamic libraries paths to binary + using linker key (-R, -rpath-link) + +3c. In case you wish $mail:receive support you need libraries + glib >= 1.2.10 + gmime >= 1.0.1 + on your system, and specify path to them to Parser3 configure script. + + You may have already installed glib at 3b step. + + glib: [ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz] + + cd glib-x.x.x + ./configure --prefix=$D/gnome + make install + + gmime: [http://spruce.sourceforge.net/gmime/sources/gmime-1.0.5.tar.gz] + + cd gmime-x.x.x + ./configure --prefix=$D/gnome + make install + + Parser3 configure options, choose whether you need static or dynamic linkage with xml libs: + --with-static-mailreceive=$D/gnome + --with-shared-mailreceive=$D/gnome + + NOTE: + In case your glib as installed into some other prefix, + specify it's configuration file with + --with-glib-config=/path/to/your/glib-config + NOTE: + In case you are using SHARED mime library, you may want to link in direct path to it, use this key to specify which linker key to use do do that: --with-pathlink=LKEY put dynamic libraries paths to binary using linker key (-R, -rpath-link) @@ -134,15 +166,19 @@ option to configure. file::exec, file::cgi and mail:send (unix version) methods would be disabled. - You can disable reading and executing files, belonging to group - other then current by setting - --disable-foreign-group-files + You can enable reading and executing files, not belonging to group+user + other then effective by setting + --disable-safe-mode option to configure. You can disable user-configured sendmail commands by forcing it, setting "--with=sendmail=COMMAND" option to configure. - + + In case you are experiencing problem with gcc runtime exception handling, + try to configure with + --with-sjlj-exceptions + option. Some root config options can be specified at configure time, and would override autodetects. @@ -157,4 +193,4 @@ Alexandr Petrosian (http://paf.design.ru) -$Id: INSTALL,v 1.21 2002/06/18 15:16:15 paf Exp $ +$Id: INSTALL,v 1.30 2003/01/09 17:06:45 paf Exp $