Annotation of parser3/INSTALL, revision 1.3

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.1       paf        19:   By default your would get 'parser3' binary without support of these features:
                     20:        * cache(hashfile class) 
                     21:        * xml(xdoc and xnode classes)
                     22: 
1.2       paf        23: 2.What is the process to install Parser3?
                     24: 
                     25:   make install
                     26: 
1.1       paf        27:   Installation layout:
                     28:     $prefix/bin/
                     29:       parser3             -- CGI and command line Parser3 interpreter
                     30:     $prefix/etc/
                     31:       parser3.conf        -- main configuration file
                     32:       parser3.charsets/   -- charset definition files
1.2       paf        33:         windows-1251.cfg  -- cyrillic charset [windows-1251 encoding]
                     34:         koi8-r.cfg        -- cyrillic charset [KOI8-R encoding]
                     35:         windows-1250.cfg  -- central europian charset [windows-1250 encoding]
                     36: 
                     37:   NOTE:
                     38:     For subsequent compilations+installs 
                     39:     to prevent configuration files to be overwritten use
                     40:   
                     41:     make install-exec
                     42:     
                     43:     it will update parser3 binary only.
1.1       paf        44: 
                     45: 2.What other libraries are needed to compile/install libxml ? 
                     46: 
                     47:   * You can compile and use parser without any additional libraries.
                     48:     That would be 'basic' version of it.
                     49: 
                     50: 
                     51:   * In case you wish cache(hashfile class) support you need library
                     52:       libdb 2.x.x >= 2.7.7
                     53:     on your system, and specify it to Parser3 configure script.
                     54: 
                     55:     Installation sequence of this library to $D/BerkeleyDB:
                     56:       cd db-2.x.x
                     57:       cd build_unix
                     58:       ../dist/configure --prefix=$D
                     59:       make install
                     60: 
                     61: 
                     62:     Parser3 configure option is --with-db2=$D/BerkeleyDB
                     63: 
                     64: 
                     65:   * In case you wish xml(xdoc and xnode classes) support you need libraries
                     66:       libxml2 >= 2.3.6
                     67:       libxslt >= 1.0.9
                     68:       glib >= 1.2.10
                     69:       gdome2 >= 0.7.0
                     70:     on your system, and specify path to them to Parser3 configure script.
                     71: 
                     72:     Sources of these two libraries must be patched prior to compile: 
                     73:       * libxml2
                     74:       * libxslt
                     75: 
                     76:     Installation sequence of these libraries to $D/gnome:
                     77: 
                     78:     libxml2: 
                     79: 
                     80:     cd libxml2-x.x.x
                     81:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_error_column_tab.patch
                     82:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_htmloutput_of_xslemptyattr_emptyquotes.patch
                     83:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context1.patch
                     84:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context2.patch
                     85:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context3.patch
                     86:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context4.patch
                     87:     ./configure --prefix=$D/gnome
                     88:     make install
                     89: 
                     90:     libxslt:
                     91: 
                     92:     cd libxslt-x.x.x
                     93:     patch -p0 < $D/parser3project/parser3/src/patches/libxslt_html_output_no_charset_meta.patch
                     94:     ./configure --with-libxml-prefix=$D/gnome --prefix=$D/gnome --without-debug --without-debugger
                     95:     make install
                     96: 
                     97:     glib: [ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz]
                     98: 
                     99:     cd glib-x.x.x
                    100:     ./configure --prefix=$D/gnome 
                    101:     make install
                    102: 
                    103:     gdome2:
                    104: 
                    105:     ./configure --with-glib-prefix=$D/gnome --disable-glibtest --with-libxml-prefix=$D/gnome --prefix=$D/gnome
                    106:     make install
                    107: 
                    108:     And patch+copy these additional headers into install includes directory
                    109: 
                    110:        patch -p0 < $D/parser3project/parser3/src/patches/libgdome_cpp_syntax1.patch
                    111:        patch -p0 < $D/parser3project/parser3/src/patches/libgdome_cpp_syntax2.patch
                    112:     mkdir $D/gnome/include/libgdome/gdomecore
                    113:     cp libgdome/gdomecore/gdome-xml-node.h $D/gnome/include/libgdome/gdomecore
                    114:     cp libgdome/gdomecore/gdome-xml-document.h $D/gnome/include/libgdome/gdomecore
                    115:     
                    116: 
                    117:     Parser3 configure option is --with-gnome-xml=$D/gnome
                    118: 
                    119:  
                    120: Alexandr Petrosian(PAF) <paf@design.ru>
                    121: 
1.3     ! paf       122: $Id: INSTALL,v 1.2 2002/01/31 11:11:43 paf Exp $

E-mail: