Skip to content

Instantly share code, notes, and snippets.

@benma
Forked from josezambrana/install xapian inside virtualenv
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benma/cabaa3e690143d030feb to your computer and use it in GitHub Desktop.
Save benma/cabaa3e690143d030feb to your computer and use it in GitHub Desktop.
install xapian inside virtualenv
#!/bin/sh
sudo apt-get install zlib1g-dev
sudo apt-get install g++
sudo apt-get install uuid-dev
export VENV=$VIRTUAL_ENV
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
tar xf xapian-core-1.2.18.tar.xz
tar xf xapian-bindings-1.2.18.tar.xz
cd xapian-core-1.2.18
./configure --prefix=$VENV && make && make install
export LD_LIBRARY_PATH=$VENV/lib
cd xapian-bindings-1.2.18
./configure --prefix=$VENV --with-python && 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