Annotation of parser3/INSTALL, revision 1.31

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: 
1.24      paf        48: 3a. You can compile and use parser without any additional libraries.
1.1       paf        49:     That would be 'basic' version of it.
                     50: 
1.24      paf        51: 3b. In case you wish xml(xdoc and xnode classes) support you need libraries
1.31    ! paf        52:       libxml2 >= 2.5.1 [ftp://xmlsoft.org/libxml2-2.5.1.tar.gz]
        !            53:       libxslt >= 1.0.23 [ftp://xmlsoft.org/libxslt-1.0.23.tar.gz]
        !            54:       glib >= 1.2.10 [ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz]
        !            55:       gdome2 >= 0.7.2 [http://gdome2.cs.unibo.it/tarball/gdome2-0.7.2.tar.gz]
1.1       paf        56:     on your system, and specify path to them to Parser3 configure script.
                     57: 
                     58:     Sources of these two libraries must be patched prior to compile: 
                     59:       * libxml2
                     60:       * libxslt
                     61: 
                     62:     Installation sequence of these libraries to $D/gnome:
                     63: 
1.31    ! paf        64:     libxml2:
1.1       paf        65: 
                     66:     cd libxml2-x.x.x
1.31    ! paf        67:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxml2.patch
1.27      paf        68:     ./configure --prefix=$D/gnome --without-zlib --without-iconv
1.1       paf        69:     make install
                     70: 
1.31    ! paf        71:     libxslt:
1.1       paf        72: 
                     73:     cd libxslt-x.x.x
1.31    ! paf        74:     patch -p0 < $D/parser3project/parser3/src/lib/patches/libxslt.patch
1.1       paf        75:     ./configure --with-libxml-prefix=$D/gnome --prefix=$D/gnome --without-debug --without-debugger
                     76:     make install
                     77: 
1.31    ! paf        78:     glib:
1.1       paf        79: 
                     80:     cd glib-x.x.x
                     81:     ./configure --prefix=$D/gnome 
                     82:     make install
                     83: 
1.31    ! paf        84:     gdome2:
1.1       paf        85: 
1.9       paf        86:     cd gdome2-x.x.x
1.31    ! paf        87:     patch -p0 < $D/parser3project/parser3/src/lib/patches/gdome2.patch
1.1       paf        88:     ./configure --with-glib-prefix=$D/gnome --disable-glibtest --with-libxml-prefix=$D/gnome --prefix=$D/gnome
                     89:     make install
                     90: 
1.9       paf        91:     And copy these additional headers into install includes directory
1.1       paf        92: 
                     93:     mkdir $D/gnome/include/libgdome/gdomecore
                     94:     cp libgdome/gdomecore/gdome-xml-node.h $D/gnome/include/libgdome/gdomecore
                     95:     cp libgdome/gdomecore/gdome-xml-document.h $D/gnome/include/libgdome/gdomecore
                     96:     
                     97: 
1.9       paf        98:     Parser3 configure options, choose whether you need static or dynamic linkage with xml libs:
                     99:         --with-static-xml=$D/gnome
                    100:         --with-shared-xml=$D/gnome
1.1       paf       101: 
1.5       paf       102:     NOTE:
                    103:     In case your glib as installed into some other prefix,
                    104:     specify it's configuration file with
                    105:         --with-glib-config=/path/to/your/glib-config
1.24      paf       106:     NOTE:
                    107:     In case you are using SHARED xml libraries, you may want to link in direct path to them,
                    108:     use this key to specify which linker key to use do do that:
                    109:         --with-pathlink=LKEY    put dynamic libraries paths to binary
                    110:                                 using linker key (-R, -rpath-link)
                    111: 
                    112: 3c. In case you wish $mail:receive support you need libraries
1.31    ! paf       113:       glib >= 1.2.10 [ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz]
        !           114:       gmime >= 1.0.1 [http://spruce.sourceforge.net/gmime/sources/gmime-1.0.5.tar.gz]
1.24      paf       115:     on your system, and specify path to them to Parser3 configure script.
                    116: 
                    117:     You may have already installed glib at 3b step.
                    118: 
1.31    ! paf       119:     glib:
1.24      paf       120: 
                    121:     cd glib-x.x.x
                    122:     ./configure --prefix=$D/gnome 
                    123:     make install
                    124: 
1.31    ! paf       125:     gmime:
1.24      paf       126: 
                    127:     cd gmime-x.x.x
                    128:     ./configure --prefix=$D/gnome
                    129:     make install
                    130: 
                    131:     Parser3 configure options, choose whether you need static or dynamic linkage with xml libs:
                    132:         --with-static-mailreceive=$D/gnome
                    133:         --with-shared-mailreceive=$D/gnome
                    134: 
                    135:     NOTE:
                    136:     In case your glib as installed into some other prefix,
                    137:     specify it's configuration file with
                    138:         --with-glib-config=/path/to/your/glib-config
                    139:     NOTE:
                    140:     In case you are using SHARED mime library, you may want to link in direct path to it,
1.9       paf       141:     use this key to specify which linker key to use do do that:
                    142:         --with-pathlink=LKEY    put dynamic libraries paths to binary
                    143:                                 using linker key (-R, -rpath-link)
                    144: 
1.18      paf       145: 4.
                    146: 
                    147:   In case you're not root on machine you're installing Parser,
                    148:   we recommend you to do:
                    149:   ./configure --prefix=/your/home/parser3install
                    150:   and afterwards copy parser3install/bin/parser3 to your CGI directory
                    151:   or make a symlink [if your web server configured to follow symlinks].
                    152: 
                    153:   You can disable libstdc++ linkage by setting
                    154:   --disable-link-libstdcpp
                    155:   option to configure.  
                    156: 
                    157:   You can disable any exec operations by setting
                    158:   --disable-execs
                    159:   option to configure.
                    160:   file::exec, file::cgi and mail:send (unix version) methods would be disabled.
                    161: 
1.29      paf       162:   You can enable reading and executing files, not belonging to group+user 
                    163:   other then effective by setting
                    164:   --disable-safe-mode
1.18      paf       165:   option to configure.
                    166:   
                    167:   You can disable user-configured sendmail commands by forcing it, setting
                    168:   "--with=sendmail=COMMAND"
                    169:   option to configure.
1.26      paf       170: 
                    171:   In case you are experiencing problem with gcc runtime exception handling,
                    172:   try to configure with
                    173:   --with-sjlj-exceptions
                    174:   option.  
1.18      paf       175: 
                    176:   Some root config options can be specified at configure time, and would override autodetects.
                    177: 
                    178:   List of enabled charsets:
                    179:   --with-charsets=CHARSET[,CHARSET,...]  Enables charsets in root config (windows-1251,
                    180:                           windows-1250 windows-1257 koi8-r; Default is windows-1251)
                    181:   SQL clients:
1.21      paf       182:   --with-mysql-client=mysqlclientlib?params
                    183:   --with-pgsql-client=pgsqlclientlib?params
                    184:   --with-oracle-client=oracleclientlib?params
1.18      paf       185:   
1.1       paf       186:  
1.4       paf       187: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1       paf       188: 
1.31    ! paf       189: $Id: INSTALL,v 1.30 2003/01/09 17:06:45 paf Exp $

E-mail: