Annotation of parser3/INSTALL, revision 1.7

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.7     ! paf        19:   NOTE: on some system you sould run 'gmake'.
        !            20: 
1.1       paf        21:   By default your would get 'parser3' binary without support of these features:
                     22:        * xml(xdoc and xnode classes)
                     23: 
1.6       paf        24: 
                     25:   In case you're not root on machine you're installing Parser,
                     26:   we recommend you to do:
                     27:   ./configure --prefix=/your/home/parser3install
                     28:   and afterwards copy parser3install/bin/parser3 to your CGI directory
                     29:   or make a symlink [if your web server configured to follow symlinks].
                     30: 
1.2       paf        31: 2.What is the process to install Parser3?
                     32: 
                     33:   make install
                     34: 
1.1       paf        35:   Installation layout:
                     36:     $prefix/bin/
                     37:       parser3             -- CGI and command line Parser3 interpreter
                     38:     $prefix/etc/
                     39:       parser3.conf        -- main configuration file
                     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: 
                     46:   NOTE:
                     47:     For subsequent compilations+installs 
                     48:     to prevent configuration files to be overwritten use
                     49:   
                     50:     make install-exec
                     51:     
                     52:     it will update parser3 binary only.
1.1       paf        53: 
                     54: 2.What other libraries are needed to compile/install libxml ? 
                     55: 
                     56:   * You can compile and use parser without any additional libraries.
                     57:     That would be 'basic' version of it.
                     58: 
                     59: 
                     60:   * In case you wish xml(xdoc and xnode classes) support you need libraries
                     61:       libxml2 >= 2.3.6
                     62:       libxslt >= 1.0.9
                     63:       glib >= 1.2.10
                     64:       gdome2 >= 0.7.0
                     65:     on your system, and specify path to them to Parser3 configure script.
                     66: 
                     67:     Sources of these two libraries must be patched prior to compile: 
                     68:       * libxml2
                     69:       * libxslt
                     70: 
                     71:     Installation sequence of these libraries to $D/gnome:
                     72: 
                     73:     libxml2: 
                     74: 
                     75:     cd libxml2-x.x.x
                     76:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_error_column_tab.patch
                     77:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_htmloutput_of_xslemptyattr_emptyquotes.patch
                     78:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context1.patch
                     79:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context2.patch
                     80:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context3.patch
                     81:     patch -p0 < $D/parser3project/parser3/src/patches/libxml_transcoder_context4.patch
                     82:     ./configure --prefix=$D/gnome
                     83:     make install
                     84: 
                     85:     libxslt:
                     86: 
                     87:     cd libxslt-x.x.x
                     88:     patch -p0 < $D/parser3project/parser3/src/patches/libxslt_html_output_no_charset_meta.patch
                     89:     ./configure --with-libxml-prefix=$D/gnome --prefix=$D/gnome --without-debug --without-debugger
                     90:     make install
                     91: 
                     92:     glib: [ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz]
                     93: 
                     94:     cd glib-x.x.x
                     95:     ./configure --prefix=$D/gnome 
                     96:     make install
                     97: 
                     98:     gdome2:
                     99: 
                    100:     ./configure --with-glib-prefix=$D/gnome --disable-glibtest --with-libxml-prefix=$D/gnome --prefix=$D/gnome
                    101:     make install
                    102: 
                    103:     And patch+copy these additional headers into install includes directory
                    104: 
                    105:        patch -p0 < $D/parser3project/parser3/src/patches/libgdome_cpp_syntax1.patch
                    106:        patch -p0 < $D/parser3project/parser3/src/patches/libgdome_cpp_syntax2.patch
                    107:     mkdir $D/gnome/include/libgdome/gdomecore
                    108:     cp libgdome/gdomecore/gdome-xml-node.h $D/gnome/include/libgdome/gdomecore
                    109:     cp libgdome/gdomecore/gdome-xml-document.h $D/gnome/include/libgdome/gdomecore
                    110:     
                    111: 
1.5       paf       112:     Parser3 configure option:
                    113:         --with-gnome-xml=$D/gnome
1.1       paf       114: 
1.5       paf       115:     NOTE:
                    116:     In case your glib as installed into some other prefix,
                    117:     specify it's configuration file with
                    118:         --with-glib-config=/path/to/your/glib-config
1.1       paf       119:  
1.4       paf       120: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1       paf       121: 
1.7     ! paf       122: $Id: INSTALL,v 1.6 2002/02/18 12:01:33 paf Exp $

E-mail: