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