Install Sphinx on Ubuntu

It’s a pretty straightforward process. Download the source and compile it. There isn’t a package for it so here are the commands.

wget http://sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
tar xzvf sphinx-0.9.8.1.tar.gz
cd  sphinx-0.9.8.1/
./configure
make
make install

When it’s done nothing fancy happens. You’ll need to test it out w/ an application/ the api.

  • Hari

    Hi
    Could you please explain me how to test the sphinx working or not.. im not clear from your notes

  • admin

    sphinx will index content from your database and provide a server to access it. on it’s own it won’t do anything w/out a data source.

    i set up sphinx w/ rails using the thinking_sphinx plugin, which provides a nice dsl for setting up indexes and searching using sphinx. more info on the rails plugin here http://freelancing-god.github.com/ts/en/

    if you want to use sphinx w/out rails and/or the thinking_sphinx plugin, you need to setup your own configuration files and indexing tasks. more info available here http://www.sphinxsearch.com/docs/manual-0.9.9.html#quick-tour

    does that answer your question?

  • admin

    the notes above just cover download and install of it since (at the time of the post) there wasn’t a package for installing it on ubuntu