编译安装Sphinx 1.10

1、下载

wget http://sphinxsearch.com/files/sphinx-1.10-beta.tar.gz
tar -xzvf sphinx-1.10-beta.tar.gz
cd sphinx-1.10-beta/

2、相关库
出了libexpat用于xml之外,还有一个libstemer可选。其实还有libiconv和libzip,只不过我好像之前装过了。

sudo apt-get install libexpat-dev

3、编译
我不需要mysql支持,独立用sphinx,所以没指定mysql

./configure --without-mysql --with-iconv --prefix=/usr/local/sphinx --datadir=/usr/local/sphinx_data
make
make install

Leave a Reply

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