|
|
InstallingXapian
Introduction
This page cover how to install Xapian and Xapian bindings 1.0.2 in your machine
Requirements
- Linux (if you know how to install Xapian in Windows, let me know)
- wget
- gcc/g++ (compile only)
- Python shared (default in Linux, but not in Freebsd)
Install
From packages
There are a very good "How to install" packages in Xapian website: http://xapian.org/download.php
For Ubuntu
The version required to properly run Djapian (Xapian >=1.0.2) is found in Ubuntu Gutsy and upward :
sudo apt-get install python-xapian xapian-tools
From source
Xapian Core
wget http://www.oligarchy.co.uk/xapian/1.0.2/xapian-core-1.0.2.tar.gz tar -zxvf xapian-core-1.0.2.tar.gz cd xapian-core-1.0.2 ./configure --prefix=/usr/local/xapian-1.0.2 make su make install
Xapian Bindings
Note: You must install xapian-core before this
wget http://www.oligarchy.co.uk/xapian/1.0.2/xapian-bindings-1.0.2.tar.gz tar -zxvf xapian-bindings-1.0.2.tar.gz cd xapian-bindings-1.0.2 ./configure --with-python make su make install
Sign in to add a comment

Thanks to Alexandre Gauthier, installing Xapian bindings on Windows is super easy. He builds a ready-made Python module packaged up in a nice distutils installer (no need to compile anything). He's pretty quick to get the latest version up and ready, currently at 1.0.5. Check it out at http://www.raptorized.com/xapian-python-win32/
I need help, when I do './configure --with-python'
I catch an error:
'configure: error: Can't find xapian-config, although the xapian-core runtime library seems to be installed. If you've installed xapian-core from a package, you probably need to install an extra package called something like xapian-core-devel in order to be able to build code using the Xapian library.'
help me !!
The instructions aren't quite right (though the wiki doesn't seem to be editable so I can't fix them). If you install xapian-core as directed, you then need to configure xapian-bindings like so:
./configure --with-python XAPIAN_CONFIG=/usr/local/xapian-1.0.2/bin/xapian-config