|
Installation
Installing XapianThis section covers installation process of Xapian and Xapian bindings 1.0.2 to your machine ContentRequirements
InstallFrom packagesThere are a very good "How to install" packages in Xapian website: http://xapian.org/download.php For UbuntuThe 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 sourceXapian Corewget 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 BindingsNote: 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 Installing DjapianTo install Djapian you'll have to choice on of this available ways: 1. Installation using source packageYou can download source archive and unpack it and with root privileges run (or use --prefix option): # python setup.py install 2. Installation using easy_installDjapian package can be installed with setuptools' easy_install program. To do so you need setuptools installed and this shell commands (with root prestigious): # easy_install Djapian or # easy_install http://djapian.googlecode.com/files/Djapian-2.0.tar.gz 3. Installation of bleeding edge development version (not recommended)For this setup variant you also need Subversion client. To get the most current source you have to checkout our repository: svn checkout http://djapian.googlecode.com/svn/trunk/ djapian Then configure your PYTHON_PATH environment variable to include "/path/to/checkout/parent/dir/djapian/src" Other package sourcesDjapian can also be obtained from PyPi repository: |
Xapian binary for Windows users http://www.flax.co.uk/xapian_windows.shtml
if you can't fing xapian-config while installing bindings you may need something like this (modify for your prefix):
./configure --prefix=/opt XAPIAN_CONFIG=/opt/bin/xapian-config
hi i have follow the installation steps, when i try to import xapian it says : ImportError?: No module named xapian
any help plz ? thanks