This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

Installing Sphinx

In order to use the Sphinx Storage Engine, it is necessary to install the Sphinx daemon.

Many Linux distributions have Sphinx in their repositories. These can be used to install Sphinx instead of following the instructions below, but these are usually quite old versions and don't all include API's for easy integration. Ubuntu users can use the updated repository at https://launchpad.net/~builds/+archive/sphinxsearch-rel21 (see instructions below). Alternatively, download from http://sphinxsearch.com/downloads/release/

Debian and Ubuntu

Ubuntu users can make use of the repository, as follows:

sudo add-apt-repository ppa:builds/sphinxsearch-rel21
sudo apt-get update
sudo apt-get install sphinxsearch

Alternatively, install as follows:

  • The Sphinx package and daemon are named sphinxsearch.
  • sudo apt-get install unixodbc libpq5 mariadb-client
  • sudo dpkg -i sphinxsearch*.deb
  • Configure Sphinx as required
  • You may need to check /etc/default/sphinxsearch to see that START=yes
  • Start with sudo service sphinxsearch start (and stop with sudo service sphinxsearch stop)

Red Hat and CentOS

  • The package name is sphinx and the daemon searchd.
  • sudo yum install postgresql-libs unixODBC
  • sudo rpm -Uhv sphinx*.rpm
  • Configure Sphinx as required
  • service searchd start

Windows

  • Unzip and extract the downloaded zip file
  • Move the extracted directory to C:\Sphinx
  • Configure Sphinx as required
  • Install as a service:
    • C:\Sphinx\bin> C:\Sphinx\bin\searchd --install --config C:\Sphinx\sphinx.conf.in --servicename SphinxSearch

Once Sphinx has been installed, it will need to be configured.

Full instructions, including details on compiling Sphinx yourself, are available at http://sphinxsearch.com/docs/current.html.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.