您的位置:首页 > 运维架构 > Linux

linux安装php sphinx出错

2014-05-17 13:32 218 查看
安装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客户端就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: