Install Xapian

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

Xapian is an open source search engine library, released under the GPL. Follow the steps and commands below to install it:

  • Get the latest sources:

    $ wget
    $ wget
    $ sudo su
  • Decompress Xapian sources:

    $ tar zxf xapian-core-1.2.12.tar.gz
    $ tar zxf xapian-bindings-1.2.12.tar.gz
  • Install dependencies:

    $ sudo apt-get update
    $ sudo apt-get install gcc g++ make
    $ sudo apt-get install uuid-dev
  • Load the Bitnami environment and set paths:

    $ . installdir/scripts/
    $ export LDFLAGS=-Linstalldir/common/lib
    $ export CPPFLAGS=-Iinstalldir/common/include
  • Compile and install Xapian:

    $ cd xapian-core-1.2.12
    $ ./configure --prefix=installdir/common
    $ make
    $ sudo make install
    $ cd ../xapian-bindings-1.2.12
    $ ./configure --prefix=installdir/common --with-python
    $ make
    $ sudo make install
  • Restart the servers:

    $ sudo installdir/ restart
Last modification September 4, 2018