Skip to content

Instantly share code, notes, and snippets.

@gregplaysguitar
Last active August 29, 2015 14:07
Show Gist options
  • Save gregplaysguitar/41f430e386ba63aef44d to your computer and use it in GitHub Desktop.
Save gregplaysguitar/41f430e386ba63aef44d to your computer and use it in GitHub Desktop.
pkgver=1.2.19
mkdir -p $VIRTUAL_ENV/src && cd $VIRTUAL_ENV/src
curl -O http://oligarchy.co.uk/xapian/$pkgver/xapian-core-$pkgver.tar.xz && tar xf xapian-core-$pkgver.tar.xz
curl -O http://oligarchy.co.uk/xapian/$pkgver/xapian-bindings-$pkgver.tar.xz && tar xf xapian-bindings-$pkgver.tar.xz
cd $VIRTUAL_ENV/src/xapian-core-$pkgver
./configure --prefix=$VIRTUAL_ENV && make && make install
export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib
cd $VIRTUAL_ENV/src/xapian-bindings-$pkgver
./configure --prefix=$VIRTUAL_ENV --with-python && make && make install
@gregplaysguitar
Copy link
Author

Use to install xapian within a virtualenv (i.e. on webfaction). Activate your virtualenv, then run the script:

> workon [venv]
> sh xapian-virtualenv.sh

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