Skip to content

Instantly share code, notes, and snippets.

@Alir3z4
Last active September 29, 2021 16:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Alir3z4/891b627e69fdefed2d90 to your computer and use it in GitHub Desktop.
Save Alir3z4/891b627e69fdefed2d90 to your computer and use it in GitHub Desktop.
install xapian inside virtualenv
#!/usr/bin/env bash
pkgver=1.2.21
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 -j8 && make install
export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib
cd $VIRTUAL_ENV/src/xapian-bindings-$pkgver
./configure --prefix=$VIRTUAL_ENV --with-python PYTHON_LIB=$VIRTUAL_ENV/lib && make -j8 && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment