Ubuntu Lucid üzerine hem Mysql ve hem de xmlpipe/2 destekli bir Sphinx kurmak icin yapılması gerekenler:

$ apt-get install mysq-server libmysqlclient-dev
$ apt-get install libexpat1 libexpat-dev

# mysq-server zaten kuruluydu bende. server kurmak istemiyorsanız kurmanıza gerek yok. sadece
# libmysqlclient-dev paketinin yeterli olacağını düşüyorum.

# Download Sphinx
# (Ubuntu Lucid de artık default repo da geliyor ama xmlpipe2 desteğini sağlayamadım)
# apt-get install sphinxsearch

Ben siteden son sürümü çekerek derledim:

http://www.sphinxsearch.com/downloads.html

$ tar xvzf sphinx-x-x-x.tar.gz
$ cd sphinx-x-x-x
$ ./configure –prefix=/usr/local/sphinx –with-mysql
$ make
$ make install
$ cp /usr/local/sphinx/etc/sphinx-min.conf.dist /usr/local/sphinx/etc/sphinx.conf

Ben Oracle dan veri cekip index’leyeceğim için xmlpipe2 kullandım.

Örnek:

source src_cv {
type = xmlpipe
xmlpipe_command = php /usr/local/sphinx/var/cmd/cv.php
}

index idx_cv {
source = src_cv
path = /usr/local/sphinx/var/data/cv
html_strip = 1
#charset_type = sbcs
charset_type =utf-8
}