Building a Debian Lenny package for Sphinxsearch

See the second part of for the original post:

$ cd
$ mkdir src
$ cd src
$ sudo grep deb-src /etc/apt/sources.list > /etc/apt/sources.list.d/wheezy.list
$ sudo vim wheezy.list
  (change squeeze to wheezy and remove security line)
$ sudo apt-get update
$ mkdir sphinxsearch
$ cd sphinxsearch
$ apt-get source sphinxsearch
$ apt-get build-dep sphinxsearch
$ cd sphinxsearch-2.0.3/
$ debuild
$ cd ..
$ dpkg -i sphinxsearch_2.0.3-1_amd64.deb

You can then start it with

$ sudo vim /etc/default/sphinxsearch
$ START=yes
$ /etc/init.d/sphinxsearch start (this generates an error but don't worry for now, just keep moving)

There are a few requirements for Sphinx to work when you start it the first time (it has to have indexing files), which you can comply with by using the indexer binary (see This tutorial on HowtoForge for more info)

It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Leave a Reply

Your email address will not be published. Required fields are marked *