X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=doc%2Finstallation.xml;h=81ac880aafcab304aef4f6d0d666309a211701e1;hp=9f2314d81615f8757c98b16201983b1279ced958;hb=972bceaa6386f904bc3e4845f1c5598656c5c6f2;hpb=763bf5f4fc8d22feda4784ec7a9db01902902016 diff --git a/doc/installation.xml b/doc/installation.xml index 9f2314d..81ac880 100644 --- a/doc/installation.xml +++ b/doc/installation.xml @@ -1,16 +1,15 @@ - Installation - &zebra; is written in &acro.ansi; C and was implemented with portability in mind. - We primarily use GCC on UNIX and + &zebra; is written in &acro.ansi; C and was implemented with portability in mind. + We primarily use GCC on UNIX and Microsoft Visual C++ on Windows. The software is regularly tested on Debian GNU/Linux, - Redhat Linux, + Red Hat Linux, Gentoo Linux, SuSE Linux, FreeBSD (i386), @@ -19,20 +18,30 @@ (sparc), Windows 2000. - + &zebra; can be configured to use the following utilities (most of which are optional): - yaz + &yaz; (required) - &zebra; uses &yaz; to support &acro.z3950; / - &acro.sru;. - Also the memory management utilites from &yaz; is used by &zebra;. + &zebra; uses &yaz; to support &acro.z3950; / + &acro.sru;. + Zebra also uses a lot of other utilities (not related to networking), + such as memory management and XML support. + + + For the DOM XML + / ALVIS + record filters, &yaz; must be compiled with + Libxml2 + and + Libxslt + support and Libxml2 must be version 2.6.15 or later. @@ -58,7 +67,7 @@ - + Tcl (optional) @@ -69,7 +78,7 @@ - + Autoconf, @@ -83,7 +92,7 @@ - + Docbook and friends (optional) @@ -102,10 +111,10 @@
UNIX On Unix, GCC works fine, but any native - C compiler should be possible to use as long as it is + C compiler should be possible to use as long as it is &acro.ansi; C compliant. - + Unpack the distribution archive. The configure shell script attempts to guess correct values for various @@ -113,16 +122,16 @@ It uses those values to create a Makefile in each directory of &zebra;. - + To run the configure script type: - + ./configure - + - + The configure script attempts to use C compiler specified by the CC environment variable. @@ -130,7 +139,7 @@ The CFLAGS environment variable holds options to be passed to the C compiler. If you're using a Bourne-shell compatible shell you may pass something like this: - + CC=/opt/ccs/bin/cc CFLAGS=-O ./configure @@ -142,7 +151,7 @@ ./configure --help - + Once the build environment is configured, build the software by typing: @@ -150,12 +159,12 @@ make - + If the build is successful, two executables are created in the sub-directory index: - + zebrasrv @@ -165,7 +174,7 @@ - zebraidx + zebraidx The administrative indexing tool. @@ -174,13 +183,13 @@ - index/*.so + index/*.so The .so-files are &zebra; record filter modules. - There are modules for reading + There are modules for reading &acro.marc; (mod-grs-marc.so), - &acro.xml; (mod-grs-xml.so) , etc. + &acro.xml; (mod-grs-xml.so) , etc. @@ -202,9 +211,9 @@ make install - By default this will install the &zebra; executables in + By default this will install the &zebra; executables in /usr/local/bin, - and the standard configuration files in + and the standard configuration files in /usr/local/share/idzebra-2.0. If shared modules are built, these are installed in /usr/local/lib/idzebra-2.0/modules. @@ -215,13 +224,13 @@
GNU/Debian
GNU/Debian Linux on - i686 Platform + i686 Platform Index Data provides pre-compiled GNU/Debian i686 Linux packages at our Debian package archive, both for - the Sarge and the Etch release. + the Sarge and the Etch release. - + To install these packages, you need to add two lines to your /etc/apt/sources.list configuration file, @@ -230,7 +239,7 @@ deb http://ftp.indexdata.dk/debian sarge main deb-src http://ftp.indexdata.dk/debian sarge main - or the Etch sources from + or the Etch sources from deb http://ftp.indexdata.dk/debian etch main deb-src http://ftp.indexdata.dk/debian etch main @@ -239,7 +248,7 @@ apt-get update - as root, the + as root, the &zebra; indexer is easily installed issuing @@ -247,16 +256,16 @@
- +
Ubuntu/Debian and GNU/Debian on other platforms These &zebra; packages are specifically compiled for - GNU/Debian Linux systems. Installation on other + GNU/Debian Linux systems. Installation on other GNU/Debian systems is possible by - re-compilation the Debian way: you need to add only the - deb-src sources lines to the + re-compilation the Debian way: you need to add only the + deb-src sources lines to the /etc/apt/sources.list configuration file, that is either the Sarge sources @@ -271,7 +280,7 @@ apt-get update apt-get build-dep idzebra-2.0 - as root, the + as root, the &zebra; indexer is recompiled and installed issuing @@ -289,12 +298,12 @@
WIN32 The easiest way to install &zebra; on Windows is by downloading - an installer from + an installer from here. The installer comes with source too - in case you wish to compile &zebra; with different Compiler options. - + &zebra; is shipped with "makefiles" for the NMAKE tool that comes with Microsoft Visual C++. @@ -306,9 +315,9 @@ WIN where the file makefile is located. Customize the installation by editing the makefile file (for example by using notepad). - + The following summarizes the most important settings in that file: - + DEBUG @@ -319,44 +328,44 @@ (code generation is multi-threaded DLL). - + YAZDIR Directory of &yaz; source. &zebra;'s makefile expects to find - yaz.lib, yaz.dll + yaz.lib, yaz.dll in yazdir/lib and yazdir/bin respectively. - + HAVE_EXPAT, EXPAT_DIR If HAVE_EXPAT is set to 1, &zebra; is compiled with Expat support. - In this configuration, set + In this configuration, set ZEBRA_DIR to the Expat source directory. Windows version of Expat can be downloaded from SourceForge. - + HAVE_ICONV, ICONV_DIR - + If HAVE_ICONV is set to 1, &zebra; is compiled - with iconv support. In this configuration, set + with iconv support. In this configuration, set ICONV_DIR to the iconv source directory. Iconv binaries can be downloaded from this site. - + BZIP2INCLUDE, BZIP2LIB, @@ -367,7 +376,7 @@ BZIP2 record compression support. - + @@ -396,7 +405,7 @@ If you wish to recompile &zebra; - for example if you modify - settings in the makefile you can delete + settings in the makefile you can delete object files, etc by running. nmake clean @@ -404,20 +413,20 @@ The following files are generated upon successful compilation: - + bin/zebraidx.exe The &zebra; indexer. - + bin/zebrasrv.exe The &zebra; server. - + - +
@@ -426,14 +435,14 @@ Upgrading from &zebra; version 1.3.x &zebra;'s installation directories have changed a bit. In addition, - the new loadable modules must be defined in the + the new loadable modules must be defined in the master zebra.cfg configuration file. The old version 1.3.x configuration options # profilePath - where to look for config files profilePath: some/local/path:/usr/share/idzebra/tab - must be changed to + must be changed to # profilePath - where to look for config files profilePath: some/local/path:/usr/share/idzebra-2.0/tab @@ -449,16 +458,16 @@ - The attribute set defintion files may no longer contain - redirection to other fields. + The attribute set definition files may no longer contain + redirection to other fields. For example the following snippet of - a custom custom/bib1.att + a custom custom/bib1.att &acro.bib1; attribute set definition file is no longer supported: att 1016 Any 1016,4,1005,62 - and should be changed to + and should be changed to att 1016 Any @@ -480,7 +489,7 @@
- It is also possible to map the numerical attribute value + It is also possible to map the numerical attribute value @attr 1=1016 onto another already existing huge index, in this example, one could for example use the mapping @@ -497,9 +506,9 @@ attset: idxpath.att - +
- +