Reetesh Ranjan


How to Index and Search using Sphinx on Ubuntu

OS & Software Versions Limitations

The author has used Sphinx 2.0.8 on Ubuntu 13.10 64-bit systems.

  • For systems with different packaging frameworks like RPMs, one needs to find packages corresponding to ones mentioned here.
  • An older or newer Ubuntu system may have a different package dependency tree, so you may see errors about a particular package not being found. But in most cases, the errors should provide you the alternative.
  • With an older or newer major version of Sphinx, the usage of its components may be different than what is used here.

Install Sphinx

Install required dependency packages as follows:

$ sudo apt-get install gcc g++ make
$ sudo apt-get install libxml2-dev libreadline6-dev libexpat1-dev libexpat1

Download Sphinx 2.0.8 source from this page and extract into a folder in your home directory.

$ tar xvfz sphinx-2.0.8-release.tar.gz
$ cd
...

Continue reading →