Forked from vinilios/install xapian inside virtualenv
Last active
December 10, 2015 18:08
-
-
Save thoslin/4472161 to your computer and use it in GitHub Desktop.
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 | |
curl -O http://oligarchy.co.uk/xapian/1.2.8/xapian-core-1.2.8.tar.gz | |
curl -O http://oligarchy.co.uk/xapian/1.2.8/xapian-bindings-1.2.8.tar.gz | |
tar xzvf xapian-core-1.2.8.tar.gz | |
tar xzvf xapian-bindings-1.2.8.tar.gz | |
cd $VENV/packages/xapian-core-1.2.8 | |
./configure --prefix=$VENV && make && make install | |
export LD_LIBRARY_PATH=$VENV/lib | |
cd $VENV/packages/xapian-bindings-1.2.8 | |
./configure --prefix=$VENV --with-python && make && make install | |
source <(curl -s https://gist.github.com/thoslin/4472161/raw/2d852d86918821d87b35097309e30072a60216a5/gistfile1.sh) |
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
apt-get install zlib1g-dev | |
apt-get install g++ | |
export VENV=$VIRTUAL_ENV | |
mkdir $VENV/packages && cd $VENV/packages | |
curl -O http://oligarchy.co.uk/xapian/1.2.8/xapian-core-1.2.8.tar.gz | |
curl -O http://oligarchy.co.uk/xapian/1.2.8/xapian-bindings-1.2.8.tar.gz | |
tar xzvf xapian-core-1.2.8.tar.gz | |
tar xzvf xapian-bindings-1.2.8.tar.gz | |
cd $VENV/packages/xapian-core-1.2.8 | |
./configure --prefix=$VENV && make && make install | |
export LD_LIBRARY_PATH=$VENV/lib | |
cd $VENV/packages/xapian-bindings-1.2.8 | |
./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