Sphinx Install: Ubuntu 9.04 Rackspace Cloud Server

Today, for a project, I needed to install Sphinx on an Ubuntu 9.04 Rackspace Cloud server.  This will get it done and might come in handy for folks.

Launch a shiny new cloud server w/ the ubuntu 9.04 server template provided by Rackspace.


apt-get update
apt-get install libmysql++-dev make gcc+ g++

Go to a directory of your choosing

Download The Sphinx Binary (latest as of this writing)
http://sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz

tar zvxf sphinx-0.9.8.1.tar.gz

cd sphinx-0.9.8.1

./configure

make

make install (you will need superuser rights for this last step)

The binaries will be install in /usr/local/bin

/usr/bin/install -c 'indexer' '/usr/local/bin/indexer'
/usr/bin/install -c 'searchd' '/usr/local/bin/searchd'
/usr/bin/install -c 'search' '/usr/local/bin/search'
/usr/bin/install -c 'spelldump' '/usr/local/bin/spelldump'

some config files will drop into /usr/local/etc

/usr/bin/install -c -m 644 'sphinx.conf.dist' '/usr/local/etc/sphinx.conf.dist'
/usr/bin/install -c -m 644 'sphinx-min.conf.dist' '/usr/local/etc/sphinx-min.conf.dist'

Enjoy!