Annotation of parser3/INSTALL, revision 1.13

1.1       paf         1: 0.Assuming your perform your builds in $D directory 
                      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: 
                      8:   mkdir $D/parser3project
                      9:   cd $D/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.10      paf        27:   NOTE:        
1.6       paf        28:   In case you're not root on machine you're installing Parser,
                     29:   we recommend you to do:
                     30:   ./configure --prefix=/your/home/parser3install
                     31:   and afterwards copy parser3install/bin/parser3 to your CGI directory
                     32:   or make a symlink [if your web server configured to follow symlinks].
                     33: 
1.10      paf        34:   NOTE:
1.12      paf        35:   You can disable libstdc++ linkage by setting
1.13    ! paf        36:   --disable-link-libstdcpp
1.12      paf        37:   option to configure.  
                     38: 
                     39:   NOTE:
1.10      paf        40:   You can disable any exec operations by setting
                     41:   --disable-execs
                     42:   option to configure.
                     43:   file::exec, file::cgi and mail:send (unix version) methods would be disabled.
1.11      paf        44:   
                     45:   NOTE:
                     46:   You can disable reading of files, belonging to group 
1.12      paf        47:   other then current by setting
1.11      paf        48:   --disable-forein-group-files
                     49:   option to configure.
                     50:   
1.10      paf        51: 
1.2       paf        52: 2.What is the process to install Parser3?
                     53: 
                     54:   make install
                     55: 
1.1       paf        56:   Installation layout:
                     57:     $prefix/bin/
                     58:       parser3             -- CGI and command line Parser3 interpreter
                     59:     $prefix/etc/
                     60:       parser3.conf        -- main configuration file
                     61:       parser3.charsets/   -- charset definition files
1.2       paf        62:         koi8-r.cfg        -- cyrillic charset [KOI8-R encoding]
                     63:         windows-1250.cfg  -- central europian charset [windows-1250 encoding]
1.5       paf        64:         windows-1251.cfg  -- cyrillic charset [windows-1251 encoding]
                     65:         windows-1257.cfg  -- baltic charset [windows-1257 encoding]
1.2       paf        66: 
                     67:   NOTE:
                     68:     For subsequent compilations+installs 
                     69:     to prevent configuration files to be overwritten use
                     70:   
                     71:     make install-exec
                     72:     
                     73:     it will update parser3 binary only.
1.1       paf        74: 
1.10      paf        75: 3.What other libraries are needed to compile/install parser? 
1.1       paf        76: 
                     77:   * You can compile and use parser without any additional libraries.
                     78:     That would be 'basic' version of it.
                     79: 
                     80: 
                     81:   * In case you wish xml(xdoc and xnode classes) support you need libraries
                     82:       libxml2 >= 2.3.6
                     83:       libxslt >= 1.0.9
                     84:       glib >= 1.2.10
                     85:       gdome2 >= 0.7.0
                     86:     on your system, and specify path to them to Parser3 configure script.
                     87: 
                     88:     Sources of these two libraries must be patched prior to compile: 
                     89:       * libxml2
                     90:       * libxslt
                     91: 
                     92:     Installation sequence of these libraries to $D/gnome:
                     93: 
1.9       paf        94:     libxml2:  [ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/libxml2-2.4.12.tar.gz]
1.1       paf        95: 
                     96:     cd libxml2-x.x.x
                     97:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_error_column_tab.patch
                     98:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_htmloutput_of_xslemptyattr_emptyquotes.patch
                     99:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context1.patch
                    100:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context2.patch
                    101:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context3.patch
                    102:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context4.patch
1.8       paf       103:     ./configure --prefix=$D/gnome --without-zlib
1.1       paf       104:     make install
                    105: 
1.9       paf       106:     libxslt:  [ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxslt/libxslt-1.0.9.tar.gz]
1.1       paf       107: 
                    108:     cd libxslt-x.x.x
                    109:     patch -p0 < $D/parser3project/parser3/src/patches/libxslt_html_output_no_charset_meta.patch
                    110:     ./configure --with-libxml-prefix=$D/gnome --prefix=$D/gnome --without-debug --without-debugger
                    111:     make install
                    112: 
1.9       paf       113:     glib:  [ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz]
1.1       paf       114: 
                    115:     cd glib-x.x.x
                    116:     ./configure --prefix=$D/gnome 
                    117:     make install
                    118: 
1.9       paf       119:     gdome2:  [http://phd.cs.unibo.it/gdome2/tarball/gdome2-0.7.0.tar.gz]
1.1       paf       120: 
1.9       paf       121:     cd gdome2-x.x.x
                    122:        patch -p0 < $D/parser3project/parser3/src/patches/libgdome_cpp_syntax1.patch
                    123:        patch -p0 < $D/parser3project/parser3/src/patches/libgdome_cpp_syntax2.patch
                    124:        patch -p0 < $D/parser3project/parser3/src/patches/libgdome_morestatic.patch
1.1       paf       125:     ./configure --with-glib-prefix=$D/gnome --disable-glibtest --with-libxml-prefix=$D/gnome --prefix=$D/gnome
                    126:     make install
                    127: 
1.9       paf       128:     And copy these additional headers into install includes directory
1.1       paf       129: 
                    130:     mkdir $D/gnome/include/libgdome/gdomecore
                    131:     cp libgdome/gdomecore/gdome-xml-node.h $D/gnome/include/libgdome/gdomecore
                    132:     cp libgdome/gdomecore/gdome-xml-document.h $D/gnome/include/libgdome/gdomecore
                    133:     
                    134: 
1.9       paf       135:     Parser3 configure options, choose whether you need static or dynamic linkage with xml libs:
                    136:         --with-static-xml=$D/gnome
                    137:         --with-shared-xml=$D/gnome
1.1       paf       138: 
1.5       paf       139:     NOTE:
                    140:     In case your glib as installed into some other prefix,
                    141:     specify it's configuration file with
                    142:         --with-glib-config=/path/to/your/glib-config
1.9       paf       143:        NOTE:
                    144:        In case you are using SHARED xml libraries, you may want to link in direct path to them,
                    145:     use this key to specify which linker key to use do do that:
                    146:         --with-pathlink=LKEY    put dynamic libraries paths to binary
                    147:                                 using linker key (-R, -rpath-link)
                    148: 
1.1       paf       149:  
1.4       paf       150: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1       paf       151: 
1.13    ! paf       152: $Id: INSTALL,v 1.12 2002/03/25 10:14:13 paf Exp $

E-mail: