Skip to content

Instantly share code, notes, and snippets.

@wengole
Last active November 9, 2017 18:35
Show Gist options
  • Save wengole/da32d292b42b9195ceaf to your computer and use it in GitHub Desktop.
Save wengole/da32d292b42b9195ceaf to your computer and use it in GitHub Desktop.
Install xapian and bindings for python3 inside virtualenv
export VENV=$VIRTUAL_ENV
mkdir $VENV/packages && cd $VENV/packages
export XAP_VER=1.3.2
curl -O http://oligarchy.co.uk/xapian/$XAP_VER/xapian-core-$XAP_VER.tar.xz
curl -O http://oligarchy.co.uk/xapian/$XAP_VER/xapian-bindings-$XAP_VER.tar.xz
tar xvf xapian-core-$XAP_VER.tar.xz
tar xvf xapian-bindings-$XAP_VER.tar.xz
cd $VENV/packages/xapian-core-$XAP_VER
./configure --prefix=$VENV && make && make install
export LD_LIBRARY_PATH=$VENV/lib
cd $VENV/packages/xapian-bindings-$XAP_VER
./configure --prefix=$VENV --with-python3 && make && make install
python -c "import xapian"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment