PHP版本要求:5.2.2 ≤ version < 6.0.0,即PHP7和PHP8都无法安装sphinx扩展。
先安装libsphinxclient
[root@localhost src]# wget http://pppboy.com/wp-content/uploads/2016/02/coreseek-3.2.14.tar.gz
[root@localhost src]# tar -xf coreseek-3.2.14.tar.gz
[root@localhost src]# cd coreseek-3.2.14/csft-3.2.14/api/libsphinxclient/
[root@localhost libsphinxclient]# ./configure
[root@localhost libsphinxclient]# make
[root@localhost libsphinxclient]# make install
安装sphinx扩展
[root@localhost src]# wget https://pecl.php.net/get/sphinx-1.3.3.tgz
[root@localhost src]# /program/php/bin/pecl install sphinx-1.3.3.tgz