Created
September 3, 2013 11:01
-
-
Save madAndroid/6422450 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
######################## | |
# Xapian Core # | |
# 26-03-2013 10:49 GMT # | |
######################## | |
set -x | |
export XAPIAN_VIRTUALENV_INSTALL=/srv/django/BASELINE | |
source $HOME/BASELINE/bin/activate | |
echo $XAPIAN_VIRTUALENV_INSTALL | |
mkdir $XAPIAN_VIRTUALENV_INSTALL/packages ; cd $XAPIAN_VIRTUALENV_INSTALL/packages | |
wget http://oligarchy.co.uk/xapian/1.2.7/xapian-core-1.2.7.tar.gz -O /usr/local/src/tarballs/xapian-core-1.2.7.tar.gz | |
tar xvfz /usr/local/src/tarballs/xapian-core-1.2.7.tar.gz | |
ls -la | |
cd $XAPIAN_VIRTUALENV_INSTALL/packages/xapian-core-1.2.7 | |
pwd | |
ls -la | |
time ./configure --prefix=$XAPIAN_VIRTUALENV_INSTALL && time make && make install | |
# make takes over 6 minutes on a m1.medium ec2 instance | |
ls -la ../../lib/ | |
export LD_LIBRARY_PATH=$XAPIAN_VIRTUALENV_INSTALL/lib | |
################### | |
# Xapian Bindings # | |
################### | |
cd $XAPIAN_VIRTUALENV_INSTALL/packages | |
pwd | |
ls -la | |
wget http://oligarchy.co.uk/xapian/1.2.7/xapian-bindings-1.2.7.tar.gz -O /usr/local/src/tarballs/xapian-bindings-1.2.7.tar.gz | |
tar xvfz /usr/local/src/tarballs/xapian-bindings-1.2.7.tar.gz | |
ls -la | |
cd $XAPIAN_VIRTUALENV_INSTALL/packages/xapian-bindings-1.2.7 | |
time ./configure --prefix=$XAPIAN_VIRTUALENV_INSTALL --with-python --without-ruby --without-perl --without-php --without-tcl | |
# make takes 9 seconds on a m1.medium ec2 instance | |
# make install take 0.2 seconds | |
time 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