Last active
November 9, 2017 18:35
-
-
Save wengole/da32d292b42b9195ceaf to your computer and use it in GitHub Desktop.
Install xapian and bindings for python3 inside virtualenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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