Sphinx Install: Ubuntu 9.04 Rackspace Cloud Server
Thursday, July 30, 2009 at 09:05PM 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!
linux search sphinx in
web
Reader Comments (3)
Nice guide, but what about postgresql configuration?
Best regards,
Heigler
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.
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-mysqlif you don't want MySQL-support at all.