From the sphinx documentation
Installing Sphinx packages on Debian and Ubuntu
There are two ways of getting Sphinx for Ubuntu: regular deb packages and the Launchpad PPA repository.
Deb packages:
Sphinx requires a few libraries to be installed on Debian/Ubuntu. Use apt-get to download and install these dependencies:
$ sudo apt-get install mysql-client unixodbc libpq5
Now you can install Sphinx:
$ sudo dpkg -i sphinxsearch_2.2.1-beta-0ubuntu11~precise_amd64.deb
PPA repository (Ubuntu only).
Installing Sphinx is much easier from Sphinxsearch PPA repository, because you will get all dependencies and can also update Sphinx to the latest version with the same command.
First, add Sphinxsearch repository and update the list of packages:
$ sudo add-apt-repository ppa:builds/sphinxsearch-daily
$ sudo apt-get update
Install/update sphinxsearch package:
$ sudo apt-get install sphinxsearch
Sphinx searched daemon can be started/stopped using service command:
$ sudo service sphinxsearch start
2.4. Installing Sphinx packages on RedHat and CentOS
Currently we distribute Sphinx RPMS and SRPMS on our website for both 5.x and 6.x versions of Red Hat Enterprise Linux, but they can be installed on CentOS as well.
Before installation make sure you have these packages installed:
$ yum install postgresql-libs unixODBC
Download RedHat RPM from Sphinx website and install it:
$ rpm -Uhv sphinx-2.2.1-1.rhel6.x86_64.rpm
After preparing configuration file (see Quick tour), you can start searchd daemon:
$ service searchd start