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

1、下载文件

wget http://pecl.php.net/get/sphinx-1.3.2.tgz

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

到此安装成功。




你可能感兴趣的:([php扩展的安装]sphinx扩展的安装)