您的位置:首页 > 编程语言 > PHP开发

[php扩展的安装]sphinx扩展的安装

2015-08-21 11:36 543 查看
1、下载文件

wget http://pecl.php.net/get/sphinx-1.3.2.tgz[/code] 
2、编译安装

tar xzf sphinx-1.3.2.tgz 
phpize #或正确的phpize完整命令
./configure


如果在执行configure命令的时候出错:

configure: error: Cannot find libsphinxclient headers


那么在sphinx的安装包中有

/sphinx-2.2.8-release/api/libsphinxclient/


进入到这个目录

cd 你的目录/sphinx-2.2.8-release/api/libsphinxclient/


安装libsphinxclient

./configure
make && make install


安装完成后继续安装php的sphinx扩展,请返回刚才的路径下

./configure --with-php-config=/alidata/server/php/bin/php-config
make
make install


到此安装成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: