Forked from vinilios/install xapian inside virtualenv
Last active
January 20, 2022 14:26
-
-
Save cobuso/8933485 to your computer and use it in GitHub Desktop.
This file contains 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
# Install xapian & python bindings to a virtualenv | |
# | |
# Build dependencies are for CentOS | |
# | |
# Assumptions: | |
# - destination virtualenv is activated | |
# | |
# Starting point was this Vagrant box: | |
# - http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130731.box | |
# - Also installed: | |
# - python (yum install python) | |
# - python-devel (yum install python-devel) | |
# - pip (via http://www.pip-installer.org/en/latest/installing.html) | |
# - virtualenv (pip install virtualenv) | |
# Deps | |
yum install xz | |
yum install libuuid-devel | |
# Grab xapian source | |
mkdir $VIRTUAL_ENV/packages && cd $VIRTUAL_ENV/packages | |
curl -O https://oligarchy.co.uk/xapian/1.4.19/xapian-core-1.4.19.tar.xz | |
curl -O https://oligarchy.co.uk/xapian/1.4.19/xapian-bindings-1.4.19.tar.xz | |
tar xf xapian-core-1.4.19.tar.xz | |
tar xf xapian-bindings-1.4.19.tar.xz | |
# Build xapian-core | |
cd $VIRTUAL_ENV/packages/xapian-core-1.4.19 | |
./configure --prefix=$VIRTUAL_ENV && make && make install | |
# Build xapian-bindings | |
export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib | |
cd $VIRTUAL_ENV/packages/xapian-bindings-1.4.19 | |
pip install sphinx | |
./configure --prefix=$VIRTUAL_ENV --with-python3 XAPIAN_CONFIG=$VIRTUAL_ENV/bin/xapian-config && make && make install | |
# Test with | |
# python -c "import xapian" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment