1 This file describes the installation procedure of Sablotron. To know
2 more on Sablotron, please read the README file in the same directory
5 To get more info on installing on *Windows*, please read
8 For specific information on how to build Sablotron with JavaScript
9 engine (to enable extensions) see the README_JS file.
14 4. Binary distributions
21 ========================================
23 Sablotron is based on Expat XML parser.
25 There is a significant change of how Expat is used since version
26 0.50. Sablotron _never_ looks for Expat under its own source tree, but
27 it supposes, that you have installed Expat library (1.95.1 or later)
32 http://sourceforge.net/projects/expat/
34 and download/install source/binary package.
36 Sablotron should be able to find and link older expat libraries
37 (libxmlparse, libxmltok), but this feature is not tested and is
42 ========================================
44 If you have downloaded the binary distribution, you can skip reading this
45 section and go to the Environment section.
47 Sablotron compiles e.g. on the following platforms:
49 - Linux (RH 5.2 - 7.0, gcc 2.95.2 or later)
50 - Windows (NT 4.0, 9x, 2000, VC++ 4.2/6.0)
51 - Solaris (Solaris 2.5.1, 2.6, 7, gcc 2.91.57)
52 - FreeBSD (FreeBSD 3.4, 4.1)
53 - OpenBSD (OpenBSD 2.8 beta)
58 If you need any other port, please contact us.
60 We use GNU autoconf since the version 0.41. So the following steps
61 should work on any UNIX platform:
65 make install (may require the root privileges)
67 These switches can be passed to ./configure
70 enables JS extension functions
72 required when installed with Charlie application framework
76 links the debugger with the readline library to make its command-line
77 interface more comfortable (SABLOT_GPL=1 must be exported)
79 These are some other useful switches you may want to pass to the configure
83 display all switches available
84 --prefix='path where to install'
85 specifies the installation path (/usr/local on most systems)
87 force compilation with the -Wall switch (for curious people)
89 disables adding of the META tag (html output method)
91 static library is not created to make compilation faster
95 ========================================
97 This chapter is obsolete, but may contain some useful info for people
98 running older configuration.
100 This version of the build process on all Unix platforms respects the
101 presence of Expat sources. If you have installed Sablotron and Expat in
102 the past (with `make install'), the configure script writes makefiles, so
103 they link Expat from your system directories (the sources win, if present).
105 If you have installed Expat in some non-system directories in the
106 past, configure script won't find headers, and build process will
107 fail, even if you specify include path with --includedir switch. To
108 fix this problem, set CPLUS_INCLUDE_PATH environment variable to point
112 4. Binary distributions
113 ========================================
115 Binaries are available for Linux Intel (rpm) and Windows32.
119 ========================================
121 No environment changes are needed (finally!). That's,
122 of course, true only if you've used standard 'make install'
125 The list of environment variables, you may possibly need modify:
127 LIBRARY_PATH: set this variable to the directory, where the Expat XML
128 parser is installed. Do it in the case the configure/linker couldn't
129 find the expat libraries.
131 LD_LIBRARY_PATH: add lib directory to this variable, if sabcmd reports
132 "Can't load shared library libsablot.0.xx" or such thing.
134 CPLUS_INCLUDE_PATH: is needed if you didn't install Sablotron (and
135 mainly Expat) into system directories and you're going compile new
136 version against older version of Expat. (see "Preinstalled Expat")
138 On some systems (UnixWare, NetBSD...) the compiler is unable to find
139 headers in /usr/local/include. Consequently the 'configure' script
140 doesn't find the expat header and compilation fails. To avoid this
141 problem, set CPPFLAGS environment to
142 '-I/usr/local/include'. CPLUS_INCLUDE_PATH is not enough.
144 If want to link Sablotron with GNU readline library you need set SABLOT_GPL
145 environment variable to 1 to declare you are going to use this software
150 ========================================
152 The source package contains XML sources of three guides:
154 Sablotron Guide and Reference
155 Sablotron Extensions API Reference
158 These guides are translated to HTML during the building of the package.
159 By default, you can find the HTML guides in
161 $(distdir)/doc/apidoc/[sablot|jsdom-ref|sxp]
163 $(datadir)/doc/html/[sablot|jsdom-ref|sxp]
167 The building of documentation requires Perl and XML::Parser to be installed;
168 otherwise the building is skipped.
172 ========================================
174 We suppose you have read the README file. If you haven't, read it now.
175 If it is not enough, take a look at our website:
177 http://www.gingerall.org