linux安装php sphinx出错

旧街凉风 提交于 2019-11-26 19:44:50

安装sphinx的php客户端

# wget -c http://pecl.php.net/get/sphinx-1.3.0.tgz
# tar zxvf sphinx-1.3.0.tgz
# cd sphinx-1.3.0
# phpize
# ./configure --with-php-config=/usr/local/php5410/bin/php-config
# make && make install

./configure的时候出错,提示checking for libsphinxclient headers in default path... not found configure: error: Cannot find libsphinxclient headers 。

找了下libsphinxclient,在/www/soft/csft-3.2.13/api/libsphinxclient,之前安装的是coreseek3.2.13版。进入该目录,重新编译

cd libsphinxclient/
./configure make && make install

然后再次编译sphinx的php客户端就可以了

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!