Installing Sphinx

Installing Sphinx can be done in various ways, depending on your operating system:

Please make sure you are using Sphinx 2.1.2 or newer. Sphinx 2.2.11 is highly recommended.

Compiling Sphinx manually

If none of the prebuilt options are working for you, then you can always compile Sphinx yourself. Download the code from the Sphinx website, and then run these commands:

./configure --with-pgsql --with-mysql
sudo make install

You can disable PostgreSQL support if you wish, just remove the --with-pgsql flag. MySQL support should not be disabled, as Thinking Sphinx communicates with Sphinx via the MySQL protocol.

If the PostgreSQL headers and libraries aren’t in your default paths, you can find out their location through the pg_config tool and then pass the value through when configuring:

./configure --with-mysql --with-pgsql=`pg_config --pkgincludedir`