Skip to content

Instantly share code, notes, and snippets.

@areski
Created August 6, 2014 15:55
Show Gist options
  • Save areski/0919d3b0874fd49ec172 to your computer and use it in GitHub Desktop.
Save areski/0919d3b0874fd49ec172 to your computer and use it in GitHub Desktop.
Install xapian Core and Bindings on Ubuntu 14.04 LTS
# Install xapian Core and Bindings
apt-get install zlib1g-dev
apt-get install g++
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-core-1.2.18.tar.xz
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-bindings-1.2.18.tar.xz
unxz xapian-core-1.2.18.tar.xz
unxz xapian-bindings-1.2.18.tar.xz
tar xvf xapian-core-1.2.18.tar
tar xvf xapian-bindings-1.2.18.tar
cd xapian-core-1.2.18
./configure
make
sudo make install
cd ..
cd xapian-bindings-1.2.18
./configure
make
sudo make install
@eladnoor
Copy link

eladnoor commented Nov 8, 2016

the http URLs for curl do not work anymore (changing them to https solves the issue).

@barseghyanartur
Copy link

Nowadays:

sudo apt-get install python-xapian
sudo apt-get install libxapian-dev

Test if it works for Python (start Python shell):

python

Do the import:

import xapian

@jorgemop
Copy link

in my case missing this: apt-get install php7.0-xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment