2

When I do "sudo apt-get install sphinxsearch", I get version 0.9. I want the latest stable version (which is 2.4, I believe)

How can I do that using aptitude?

4 Answers 4

3

Use a third party repository, or else upgrade to Ubuntu 12.04. The 12.04 repositories contain sphinxsearch 2.0.4, which is current as of March 2012.

2
  • How do I upgrade my ubuntu to 12.04? I'm on 11. Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-14-virtual x86_64)
    – Alex
    May 2, 2012 at 1:23
  • 2
    sudo do-release-upgrade. Back your system up first. May 2, 2012 at 1:23
3

You can just download the source files and compile it. Its a very straightforward compile and takes just a couple minutes. From the site (http://sphinxsearch.com/docs/current.html#installing):

2.3. Installing Sphinx on Linux

Extract everything from the distribution tarball (haven't you already?) and go to the sphinx subdirectory. (We are using version 2.0.1-beta here for the sake of example only; be sure to change this to a specific version you're using.)

$ tar xzvf sphinx-2.0.1-beta.tar.gz
$ cd sphinx

Run the configuration program:

$ ./configure

There's a number of options to configure. The complete listing may be obtained by using --help switch. The most important ones are:

--prefix, which specifies where to install Sphinx; such as --prefix=/usr/local/sphinx (all of the examples use this prefix)

--with-mysql, which specifies where to look for MySQL include and library files, if auto-detection fails;

--with-pgsql, which specifies where to look for PostgreSQL include and library files.

Build the binaries:

$ make

Install the binaries in the directory of your choice: (defaults to /usr/local/bin/ on *nix systems, but is overridden with configure --prefix)

$ make install
2

You could use the repository from ppa:

add-apt-repository ppa:dhuggins/cmusphinx
apt-get update 
apt-get install  sphinxsearch    
1
  • This worked for me.But i used update instead of install Nov 7, 2013 at 16:41
-2

Install sphinx search on any ubuntu version.

  1. go to synaptic package manager
  2. search for sphinxsearch, then select it and install.
  3. after installation sphinx config files are located in /etc/sphinxsearch/ folder.
  4. open command propt
  5. $sudo gedit /etc/sphinxsearch/sphinx.conf
  6. open file and change as per your requirnment.
  7. If the file is empty, you must create it using this command: $sudo cp /etc/sphinxsearch/sphinx.conf.sample /etc/sphinxsearch/sphinx.conf
  8. issue the command sudo indexer --rotate --all and your indexing will start.
1
  • Please note that your answer does not pertain on the point that the OP's apt sources do not seem to include the desired version of the software. Jun 13, 2014 at 16:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .