« Using Curl to Access the Rackspace Cloud API | Main | memcached 1.4 release »
Thursday
Jul302009

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!

EmailEmail Article to Friend

Reader Comments (3)

Nice guide, but what about postgresql configuration?

Best regards,
Heigler

August 7, 2009 | Unregistered CommenterHeigler

Hi Heigler, I don't often use postgresql. If you write one or find one let me know and I'll be happy to update the post with a link out.

August 7, 2009 | Unregistered CommenterKent

Something like this would do the trick:

./configure --with-pgsql --with-pgsql-includes=/usr/include/postgresql/ --with-pgsql-lib=/usr/lib/postgresql/8.3/lib/

You can also opt to --without-mysql if you don't want MySQL-support at all.

September 14, 2009 | Unregistered CommenterAnon
Editor Permission Required
You must have editing permission for this entry in order to post comments.