Annotation of parser3/INSTALL, revision 1.23

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.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: 
                     48:   * You can compile and use parser without any additional libraries.
                     49:     That would be 'basic' version of it.
                     50: 
                     51: 
                     52:   * In case you wish xml(xdoc and xnode classes) support you need libraries
1.19      paf        53:       libxml2 >= 2.4.11
1.1       paf        54:       libxslt >= 1.0.9
                     55:       glib >= 1.2.10
                     56:       gdome2 >= 0.7.0
                     57:     on your system, and specify path to them to Parser3 configure script.
                     58: 
                     59:     Sources of these two libraries must be patched prior to compile: 
                     60:       * libxml2
                     61:       * libxslt
                     62: 
                     63:     Installation sequence of these libraries to $D/gnome:
                     64: 
1.9       paf        65:     libxml2:  [ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/libxml2-2.4.12.tar.gz]
1.1       paf        66: 
                     67:     cd libxml2-x.x.x
1.23    ! paf        68:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_error_column_tab.patch
        !            69:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_htmloutput_of_xslemptyattr_emptyquotes.patch
        !            70:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_transcoder_context1.patch
        !            71:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_transcoder_context2.patch
        !            72:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_transcoder_context3.patch
        !            73:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml_transcoder_context4.patch
1.8       paf        74:     ./configure --prefix=$D/gnome --without-zlib
1.1       paf        75:     make install
                     76: 
1.9       paf        77:     libxslt:  [ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxslt/libxslt-1.0.9.tar.gz]
1.1       paf        78: 
                     79:     cd libxslt-x.x.x
1.23    ! paf        80:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxslt_html_output_no_charset_meta.patch
1.1       paf        81:     ./configure --with-libxml-prefix=$D/gnome --prefix=$D/gnome --without-debug --without-debugger
                     82:     make install
                     83: 
1.9       paf        84:     glib:  [ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz]
1.1       paf        85: 
                     86:     cd glib-x.x.x
                     87:     ./configure --prefix=$D/gnome 
                     88:     make install
                     89: 
1.9       paf        90:     gdome2:  [http://phd.cs.unibo.it/gdome2/tarball/gdome2-0.7.0.tar.gz]
1.1       paf        91: 
1.9       paf        92:     cd gdome2-x.x.x
1.23    ! paf        93:        patch -p0 < $D/parser3project/parser3/src/lib/patches/libgdome_cpp_syntax1.patch
        !            94:        patch -p0 < $D/parser3project/parser3/src/lib/patches/libgdome_cpp_syntax2.patch
        !            95:        patch -p0 < $D/parser3project/parser3/src/lib/patches/libgdome_morestatic.patch
1.1       paf        96:     ./configure --with-glib-prefix=$D/gnome --disable-glibtest --with-libxml-prefix=$D/gnome --prefix=$D/gnome
                     97:     make install
                     98: 
1.9       paf        99:     And copy these additional headers into install includes directory
1.1       paf       100: 
                    101:     mkdir $D/gnome/include/libgdome/gdomecore
                    102:     cp libgdome/gdomecore/gdome-xml-node.h $D/gnome/include/libgdome/gdomecore
                    103:     cp libgdome/gdomecore/gdome-xml-document.h $D/gnome/include/libgdome/gdomecore
                    104:     
                    105: 
1.9       paf       106:     Parser3 configure options, choose whether you need static or dynamic linkage with xml libs:
                    107:         --with-static-xml=$D/gnome
                    108:         --with-shared-xml=$D/gnome
1.1       paf       109: 
1.5       paf       110:     NOTE:
                    111:     In case your glib as installed into some other prefix,
                    112:     specify it's configuration file with
                    113:         --with-glib-config=/path/to/your/glib-config
1.9       paf       114:        NOTE:
                    115:        In case you are using SHARED xml libraries, you may want to link in direct path to them,
                    116:     use this key to specify which linker key to use do do that:
                    117:         --with-pathlink=LKEY    put dynamic libraries paths to binary
                    118:                                 using linker key (-R, -rpath-link)
                    119: 
1.18      paf       120: 4.
                    121: 
                    122:   In case you're not root on machine you're installing Parser,
                    123:   we recommend you to do:
                    124:   ./configure --prefix=/your/home/parser3install
                    125:   and afterwards copy parser3install/bin/parser3 to your CGI directory
                    126:   or make a symlink [if your web server configured to follow symlinks].
                    127: 
                    128:   You can disable libstdc++ linkage by setting
                    129:   --disable-link-libstdcpp
                    130:   option to configure.  
                    131: 
                    132:   You can disable any exec operations by setting
                    133:   --disable-execs
                    134:   option to configure.
                    135:   file::exec, file::cgi and mail:send (unix version) methods would be disabled.
                    136: 
                    137:   You can disable reading and executing files, belonging to group 
                    138:   other then current by setting
                    139:   --disable-foreign-group-files
                    140:   option to configure.
                    141:   
                    142:   You can disable user-configured sendmail commands by forcing it, setting
                    143:   "--with=sendmail=COMMAND"
                    144:   option to configure.
                    145:   
                    146: 
                    147:   Some root config options can be specified at configure time, and would override autodetects.
                    148: 
                    149:   List of enabled charsets:
                    150:   --with-charsets=CHARSET[,CHARSET,...]  Enables charsets in root config (windows-1251,
                    151:                           windows-1250 windows-1257 koi8-r; Default is windows-1251)
                    152:   SQL clients:
1.21      paf       153:   --with-mysql-client=mysqlclientlib?params
                    154:   --with-pgsql-client=pgsqlclientlib?params
                    155:   --with-oracle-client=oracleclientlib?params
1.18      paf       156:   
1.1       paf       157:  
1.4       paf       158: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1       paf       159: 
1.23    ! paf       160: $Id: INSTALL,v 1.22 2002/06/20 13:39:56 paf Exp $

E-mail: