1 <!-- $Id: installation.xml,v 1.11 2003-03-27 13:38:13 adam Exp $ -->
2 <chapter id="installation">
3 <title>Installation</title>
5 Zebra is written in ANSI C and was implemented with portability in mind.
6 We primarily use GCC on UNIX and Microsoft Visual C++ on Windows.
10 The software is regularly tested on
11 <ulink url="http://www.debian.org/">Debian GNU/Linux</ulink>,
12 <ulink url="http://www.redhat.com/">Redhat Linux</ulink>,
13 <ulink url="http://www.gentoo.org/">Gentoo Linux</ulink>,
14 <ulink url="http://www.suse.com/">SuSE Linux</ulink>,
15 <ulink url="http://www.netbsd.org/Ports/cobalt/">NetBSD (Cobalt)</ulink>,
16 <ulink url="http://www.freebsd.org/">FreeBSD (i386)</ulink>,
17 <ulink url="http://www.apple.com/macosx/">MAC OSX</ulink>,
18 <ulink url="http://wwws.sun.com/software/solaris/">SunOS 5.8 (sparc)</ulink>,
19 <ulink url="http://www.microsoft.com/windows2000/">Windows 2000 SP3</ulink>.
23 Zebra can be configured to use the following utilities (most of
28 <term><ulink url="http://www.indexdata.dk/yaz/">yaz</ulink>
32 Zebra uses YAZ to support Z39.50/SRW. Also the memory management
33 utilites from YAZ is used by Zebra.
38 <term><ulink url="http://www.gnu.org/software/libiconv/">iconv</ulink>
42 Character set conversion. This is required if you're
43 going to use any other character set than UTF-8 and ISO-8859-1
44 for records. Note that some Unixes has iconv built-in.
49 <term><ulink url="http://expat.sourceforge.net/">Expat</ulink>
53 XML parser. If you're going to index real XML you should
54 install this (filter grs.xml). On most systems you should be able
55 to find binary Expat packages.
61 <term><ulink url="http://www.perl.com/">Perl</ulink> (optional)</term>
64 Perl is required if you're going to use the Zebra perl
65 filter facility or the Zebra perl API. Perl is preinstalled
66 on many Unixes. We've not tried the Perl extension on
73 <term><ulink url="http://www.tcl.tk/">Tcl</ulink> (optional)</term>
76 Tcl is required if you need to use the Tcl record filter
77 for Zebra. You can find binary packages for Tcl for many
85 <ulink url="http://www.gnu.org/software/autoconf/">Autoconf</ulink>,
86 <ulink url="http://www.gnu.org/software/automake/">Automake</ulink>
90 GNU Automake and Autoconf are only required if you're
91 using the CVS version of Zebra. You do not need these
92 if you have fetched a Zebra tar.
98 <term><ulink url="http://docbook.org/">Docbook</ulink>
99 and friends (optional)</term>
102 These tools are only required if you're writing
103 documentation for Zebra. You need the following
104 Debian packages: jadetex, docbook, docbook-dsssl,
105 docbook-xml, docbook-utils.
112 <sect1 id="installation.unix"><title>UNIX</title>
114 On Unix, <literal>gcc</literal> works fine, but any native
115 C compiler should be possible to use as long as it is
120 Unpack the distribution archive. The <literal>configure</literal>
121 shell script attempts to guess correct values for various
122 system-dependent variables used during compilation.
123 It uses those values to create a <literal>Makefile</literal> in each
128 To run the configure script type:
137 The configure script attempts to use C compiler specified by
138 the <literal>CC</literal> environment variable.
139 If this is not set, <literal>cc</literal> or GNU C will be used.
140 The <literal>CFLAGS</literal> environment variable holds
141 options to be passed to the C compiler. If you're using a
142 Bourne-shell compatible shell you may pass something like this:
145 CC=/opt/ccs/bin/cc CFLAGS=-O ./configure
149 The configure script support various options: you can see what they
157 Once the build environment is configured, build the software by
165 If the build is successful, two executables are created in the
166 sub-directory <literal>index</literal>:
170 <term><literal>zebrasrv</literal></term>
173 The Z39.50 server and search engine.
178 <term><literal>zebraidx</literal></term>
181 The administrative indexing tool.
189 You can now use Zebra. If you wish to install it system-wide, then
194 By default this will install the Zebra executables in
195 <filename>/usr/local/bin</filename>,
196 and the standard configuration files in
197 <filename>/usr/local/share/idzebra</filename>
198 You can override this with the <literal>--prefix</literal> option
202 <sect1 id="installation.win32"><title>WIN32</title>
208 <!-- Keep this comment at the end of the file
213 sgml-minimize-attributes:nil
214 sgml-always-quote-attributes:t
217 sgml-parent-document: "zebra.xml"
218 sgml-local-catalogs: nil
219 sgml-namecase-general:t