php7安装sphinx
下载地址:https://github.com/php/pecl-search_engine-sphinx/tree/php7
/configure 的时候可能出错,提示
checking for libsphinxclient headers in default path... not found configure: error: Cannot find libsphinxclient headers ,
解决方法如下:
进入api/libsphinxclient目录,编译安装libsphinxclient即可
# ./configure # make && make install
安装sphinx
#下载最新稳定版
wget http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
tar xzvf sphinx-0.9.9.tar.gz
cd sphinx-0.9.9
./configure --prefix=/usr/local/sphinx/ --with-mysql --enable-id64
make
make install