Annotation of parser3/INSTALL, revision 1.20

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

E-mail: