Skip to content

Instantly share code, notes, and snippets.

@barseghyanartur
Forked from areski/install-xapian
Last active May 2, 2019 10:20
Show Gist options
  • Save barseghyanartur/94ad926bede1bbb42c9e to your computer and use it in GitHub Desktop.
Save barseghyanartur/94ad926bede1bbb42c9e to your computer and use it in GitHub Desktop.
Install xapian Core and Bindings with Python support on Ubuntu 14.04 LTS
# *****************************************************
# ***************** Install xapian Core ***************
# *****************************************************
sudo apt-get install zlib1g-dev
sudo apt-get install g++
sudo apt-get install uuid-dev
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
mkdir -p $HOME/local
./configure --prefix=$HOME/local
./configure
make
sudo make install
# *****************************************************
# **** Install Xapian bindings with Python support ****
# *****************************************************
cd ..
cd xapian-bindings-1.2.18
./configure --with-python --prefix=$HOME/local/
make
sudo make install
# *****************************************************
# ********************* Check it **********************
# *****************************************************
python -c "import xapian"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment