Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save josezambrana/920909 to your computer and use it in GitHub Desktop.
Save josezambrana/920909 to your computer and use it in GitHub Desktop.
sudo apt-get install zlib1g-dev
sudo apt-get install g++
sudo apt-get install uuid-dev
export VENV=$VIRTUAL_ENV
mkdir $VENV/packages && cd $VENV/packages
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-core-1.2.18.tar.xz
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-bindings-1.2.18.tar.xz
tar xf xapian-core-1.2.18.tar.gz
tar xf xapian-bindings-1.2.18.tar.gz
cd $VENV/packages/xapian-core-1.2.18
./configure --prefix=$VENV && make && make install
export LD_LIBRARY_PATH=$VENV/lib
cd $VENV/packages/xapian-bindings-1.2.18
./configure --prefix=$VENV --with-python && make && make install
python -c "import xapian"
pip install django-haystack
pip install git+https://github.com/notanumber/xapian-haystack.git
@aabele
Copy link

aabele commented Apr 25, 2016

Thanks for sharing! Worked like a charm on ubuntu 14.04

@rahul-bhambri
Copy link

thanks a ton!

@oscarfnp
Copy link

worked in ubuntu16

@girzel
Copy link

girzel commented Oct 1, 2018

Fails for me on Ubuntu18.04, with an "internal compiler error", when making the xapian_wrap.lo target. (xapian-core builds fine, this was xapian-bindings)

@girzel
Copy link

girzel commented Oct 3, 2018

Turns out that was because my server was running out of memory :)

@arobinski
Copy link

I got an error:

tar: xapian-core-1.2.18.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

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