oneonepootle

Install Xapian

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 http://oligarchy.co.uk/xapian/1.2.12/xapian-core-1.2.12.tar.gz
    $ wget http://oligarchy.co.uk/xapian/1.2.12/xapian-bindings-1.2.12.tar.gz
    $ 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:

    • Debian:

      $ sudo apt-get update
      $ sudo apt-get install gcc g++ make
      $ sudo apt-get install uuid-dev
      
    • CentOS:

      $ sudo yum groups mark install "Development Tools"
      
  • Set paths:

    $ export LDFLAGS=-L/opt/bitnami/common/lib
    $ export CPPFLAGS=-I/opt/bitnami/common/include
    
  • Compile and install Xapian:

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

    $ sudo /opt/bitnami/ctlscript.sh restart