How to install and uninstall sphinx search from source in Ubuntu


Instead using synaptic and install sphinxsearch deb package, we also can use the source. First, you should download source package from the sphinxsearch website http://sphinxsearch.com/downloads/.

At this example, I use sphinx-2.0.4-release.tar.gz. I use Ubuntu 12.04 Precise. Then you can extract it and start compiling. Here are the steps to do :

1
2
3
4
5
6
sudo apt-get install build-essential libmysql++-dev libmysqlclient18-dev
tar -xvvf sphinx-2.0.4-release.tar.gz
cd sphinx-2.0.4-release
./configure –with-mysql
make
sudo make install

It will installed in /usr/local. For sphinx.conf, you can create it at /usr/local/etc.

If you need to uninstall sphinx search from source, then just go to previous folder (sphinx-2.0.4-release) and do :

1
sudo make uninstall

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.