Chapter 2. Installation

Table of Contents

1. Installation from source on Unix (including Linux, MacOS, etc.)
2. Installation from source on Windows
3. Installation of test interfaces
4. Installation on Debian GNU/Linux and Ubuntu
5. Installation on RedHat / CentOS
6. Apache 2 Proxy

The Pazpar2 package includes documentation as well as the Pazpar2 server. The package also includes a simple user interface called "test1", which consists of a single HTML page and a single JavaScript file to illustrate the use of Pazpar2.

Pazpar2 depends on the following tools/libraries:

YAZ

The popular Z39.50 toolkit for the C language. YAZ must be compiled with libxml2/libxslt support.

It is highly recommended that YAZ is also compiled with ICU support.

In order to compile Pazpar2, a C compiler which supports C99 or later is required.

1. Installation from source on Unix (including Linux, MacOS, etc.)

The latest source code for Pazpar2 is available from http://ftp.indexdata.com/pub/pazpar2/. Most Unix-based operating systems have the required tools available as binary packages. For example, if libxml2/libxslt libraries are already installed as development packages, use these.

Ensure that the development libraries and header files are available on your system before compiling Pazpar2. For installation of YAZ, refer to the Installation chapter of the YAZ manual at http://www.indexdata.com/yaz/doc/installation.html.

Once the dependencies are in place, Pazpar2 can be unpacked and installed as follows:

    tar xzf pazpar2-VERSION.tar.gz
    cd pazpar2-VERSION
    ./configure
    make
    sudo make install
   

The make install will install manpages as well as the Pazpar2 server, pazpar2, in PREFIX/sbin. By default, PREFIX is /usr/local/ . This can be changed with configure option --prefix.