Annotation of parser3/INSTALL, revision 1.48.2.2

1.48.2.1  paf         1: Alexander Petrosian <paf@design.ru> (http://paf.design.ru)
1.48.2.2! paf         2: $Id: INSTALL,v 1.48.2.1 2005/12/28 16:45:36 paf Exp $
1.1       paf         3: 
1.33      paf         4: 1.What is the process to compile Parser3?
                      5: 
1.48.2.1  paf         6:   Just start ./buildall-with-xml script and you would get $HOME/parser3install/bin/parser3 binary.
                      7:   In case you do not need XML support, use ./buildall-without-xml
1.33      paf         8: 
1.3       paf         9: 
1.10      paf        10:   NOTE:
1.48.2.1  paf        11:   On some platforms there is special version of libgc patched to support some
                     12:   local piece of subtlety.
                     13:   Official libgc does not work there, use special version instead.
                     14:   (OpenBSD reported to be one of those)
1.48.2.2! paf        15:   If you need that special version, please change buildall script accordingly.
1.7       paf        16: 
1.10      paf        17:   NOTE:
1.48.2.1  paf        18:   On some systems there are no "make" and you should run 'gmake', change buildall script accordingly then.
1.10      paf        19: 
1.2       paf        20: 2.What is the process to install Parser3?
                     21: 
1.48.2.2! paf        22:   Just copy files from $HOME/parser3install directory into your cgi-bin directory.
1.2       paf        23: 
1.48.2.2! paf        24:   Files layout:
1.1       paf        25:     $prefix/bin/
                     26:       parser3             -- CGI and command line Parser3 interpreter
1.22      paf        27:       auto.p.dist         -- configuration file sample, 
                     28:                              copy it to auto.p and adjust to your needs
1.1       paf        29:     $prefix/etc/
                     30:       parser3.charsets/   -- charset definition files
1.2       paf        31:         koi8-r.cfg        -- cyrillic charset [KOI8-R encoding]
1.33      paf        32:         windows-1250.cfg  -- central europian charset [windows-1250 encoding]
1.5       paf        33:         windows-1251.cfg  -- cyrillic charset [windows-1251 encoding]
                     34:         windows-1257.cfg  -- baltic charset [windows-1257 encoding]
1.2       paf        35: 
1.48.2.1  paf        36: 3.I have heard about $mail:receive experimental support, how do I use it?
1.48.2.2! paf        37:   You need to bulid these additional libraries
1.41      paf        38:       glib >= 1.2.10
1.39      paf        39:       gmime >= 1.0.1 [http://spruce.sourceforge.net/gmime/sources/v1.0/gmime-1.0.8.tar.gz]
1.24      paf        40:     on your system, and specify path to them to Parser3 configure script.
                     41: 
1.31      paf        42:     glib:
1.24      paf        43: 
1.44      paf        44:     cd $HOME/parser3project/src
1.41      paf        45:     #on freebsd5 this is reported to work: ftp://ftp.gtk.org/pub/gtk/v1.1/glib-1.1.16.tar.gz
1.45      paf        46:     wget --passive-ftp ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz
1.44      paf        47:     gunzip -c glib-1.2.10.tar.gz | tar vxf -
1.41      paf        48:     cd glib-1.2.10
1.43      paf        49:     ./configure --prefix=$HOME/parser3project/gnome --silent
1.24      paf        50:     make install
                     51: 
1.31      paf        52:     gmime:
1.24      paf        53: 
                     54:     cd gmime-x.x.x
1.43      paf        55:     ./configure --prefix=$HOME/parser3project/gnome
1.24      paf        56:     make install
                     57: 
1.48.2.2! paf        58:     Then you need to change buildall script to add this to parser3 configure line:
1.43      paf        59:         --with-static-mailreceive=$HOME/parser3project/gnome
1.48.2.2! paf        60:     And start that changed ./buildall.
1.24      paf        61: 
                     62:     NOTE:
                     63:     In case your glib as installed into some other prefix,
                     64:     specify it's configuration file with
                     65:         --with-glib-config=/path/to/your/glib-config
                     66:     NOTE:
                     67:     In case you are using SHARED mime library, you may want to link in direct path to it,
1.33      paf        68:     use this key to specify which linker key to use do do that:
1.9       paf        69:         --with-pathlink=LKEY    put dynamic libraries paths to binary
                     70:                                 using linker key (-R, -rpath-link)
                     71: 
1.48.2.2! paf        72: 4.Security issues
1.18      paf        73:   You can disable any exec operations by setting
                     74:   --disable-execs
                     75:   option to configure.
                     76:   file::exec, file::cgi and mail:send (unix version) methods would be disabled.
                     77: 
1.29      paf        78:   You can enable reading and executing files, not belonging to group+user 
                     79:   other then effective by setting
                     80:   --disable-safe-mode
1.18      paf        81:   option to configure.
                     82:   
                     83:   You can disable user-configured sendmail commands by forcing it, setting
1.48.2.2! paf        84:   "--with=sendmail=COMMAND"
1.41      paf        85:   option to configure, for example:
1.48.2.2! paf        86:   "--with-sendmail=/usr/sbin/sendmail -i -t -f postmaster"
1.26      paf        87: 
1.48.2.2! paf        88:   In case you are experiencing problem with gcc runtime exception handling
        !            89:   (most notable when reporting sql-related problems),
1.26      paf        90:   try to configure with
                     91:   --with-sjlj-exceptions
1.48.2.2! paf        92:   option.
        !            93:   (HPUX is reported to be have such problems)
1.18      paf        94: 
1.33      paf        95:   By default libstdc++ is linked statically, you can re-enable dynamic libstdc++ linkage by specifying
                     96:   --with-dynamic-stdcpp
                     97:   option to configure.  
                     98: 
                     99: 
1.18      paf       100:   Some root config options can be specified at configure time, and would override autodetects.
                    101: 
                    102:   List of enabled charsets:
                    103:   --with-charsets=CHARSET[,CHARSET,...]  Enables charsets in root config (windows-1251,
                    104:                           windows-1250 windows-1257 koi8-r; Default is windows-1251)
                    105:   SQL clients:
1.21      paf       106:   --with-mysql-client=mysqlclientlib?params
                    107:   --with-pgsql-client=pgsqlclientlib?params
                    108:   --with-oracle-client=oracleclientlib?params
1.18      paf       109:   
1.37      paf       110: 5.
                    111:   If you need to build apache 1.3 parser module, get source distribution of apache 1.3,
                    112:   run configure there, then run parser configure with one more option:
                    113:   --with-apache13=Apache13 source distribution directory
                    114:   after 'make' go to that directory and run
                    115: 
                    116:   ./p3runConfigure <any additional options to apache configure to pass>
                    117:   
                    118:   example:
1.46      paf       119:   ./p3runConfigure --prefix=$HOME/apache13install --enable-module=rewrite
1.37      paf       120: 
                    121:   WARNING: if you want to use apache configure option --enable-shared=max, do this:
                    122:   ./p3runConfigure --enable-shared=max --disable-shared=mod_parser3.c

E-mail: