Every repository with this icon (
Every repository with this icon (
Installation
Some contents where taken from Jim’s excellent post.
See here
In order to use acts_as_xapian you have to install Xapian and its bindings for other languages (including Ruby).
Contents
====
- a. Official Docs, related Information
- b. Install Xapian on Mac OSX
- c. Install Xapian for ruby enterprise edition on Ubuntu (and it’s likely to work on Debian too)
- d. (more is coming soon)
a. Official Docs, related Information
=========
Xapian on freshmeat.net
(There you can subscribe for updates on the Xapian project)
=========
Note: If you are using 10.6 (Snow Leopard) you will need to apply this patch or use Xapian 1.0.16 or later.
cd /usr/local/src
Download & install xapian-core to /opt:
wget http://oligarchy.co.uk/xapian/1.0.9/xapian-core-1.0.9.tar.gz
tar xzvf xapian-core-1.0.9.tar.gz
cd xapian-core-1.0.9
./configure —prefix=/opt
make
sudo make install
Download & install xapian-bindings to /opt:
wget http://oligarchy.co.uk/xapian/1.0.9/xapian-bindings-1.0.9.tar.gz
tar xzvf xapian-bindings-1.0.9.tar.gz
cd xapian-bindings-1.0.9
./configure —prefix=/opt XAPIAN_CONFIG=/opt/bin/xapian-config
make
sudo make install
c. Install Xapian for Ruby Enterprise Edition on Ubuntu
=========
as posted on Google Groups by Jim Mulholland. Thank you.
It is possible to symlink the 2 xapian-binding related files from the core Ruby 1.8.6 to the Ruby Enterprise Edition.
Here are the steps to get this work on Ubuntu where Ruby
Enterprise was installed at /usr/local/ruby-enterprise:
# Install these 2 packages via apt-get: libxapian15 and libxapian-ruby1.8 $ cd /usr/local/ruby-enterprise/lib/ruby/1.8 $ ln -s /usr/lib/ruby/1.8/xapian.rb $ cd /usr/local/ruby-enterprise/lib/ruby/site_ruby/1.8/i686-linux/ $ sudo ln -s /usr/lib/ruby/1.8/i486-linux/_xapian.so $ sudo apache2ctl restart






