Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to know if there is a package for Sphinx search hiding out there somewhere. Their download page shows various RPM's, but I was not able to find anything for Ubuntu.

The install from source is super easy, but it would be nice to have it under package management.

share|improve this question

4 Answers 4

up vote 8 down vote accepted

sudo apt-get install sphinxsearch

Ubuntu Packages: Sphinx Search (Lucid)

share|improve this answer
    
Now why didn't I think of that? –  jbowtie Jul 30 '10 at 3:14
    
And for future reference "apt-cache search xxxxx" will help you find packages. It helps to know the package name and/or use grep to narrow the results. In this case you could do this: apt-cache search sphinx | grep search And you'll see that the package is indeed called sphinxsearch (obviously a trivial example) –  mfisch Jul 30 '10 at 3:15
    
Thanks to both of you. –  jdl Jul 30 '10 at 4:16
    
I tend to keep people away from the apt-cache search though you are right. There is a web interface for all the packages across all supported releases of Ubuntu (see my link) –  Marco Ceppi Jul 30 '10 at 13:42

You can use checkinstall when installing from source; it will create a .deb file and install the generated package.

There are more details on the wiki, but, briefly, instead of:

sudo make install

do:

sudo checkinstall

and Sphinx will be under package management.

Note that the generated package is really only good for the machine you created it on as it's only for one architecture and lacks most of the important metadata needed for distribution (like prerequisites). However it will allow you to upgrade or uninstall cleanly.

share|improve this answer

The apt-get install sphinxsearch gives you version 0.9.8, at the download site from Sphinx itself it's at 2.0.8... You might want to not use the apt-get version if you want up-to-date search capabilities.

share|improve this answer

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.