码迷,mamicode.com
首页 > Web开发 > 详细

php 安装shpinx扩展

时间:2016-05-06 10:39:59      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

cd /home/packages

wget http://sphinxsearch.com/files/sphinx-0.9.9.tar.gz

tar xzvf sphinx-0.9.9.tar.gz

cd sphinx-0.9.9/api/libsphinxclient

vim sphinxclient.c                    

   找到

   void sock_close ( int sock );

   改为

   static void sock_close ( int sock );

./configure --prefix=/usr/local/sphinxclient

make

make install

 

安装sphinx扩展

cd /home/packages

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

tar xvzf sphinx-1.0.3.tgz

cd sphinx-1.0.3

/usr/local/php5_nginx/bin/phpize

./configure --with-php-config=/usr/local/php5_nginx/bin/php-config --with-sphinx=/usr/local/sphinxclient

make

make install

 

修改php.ini (PATH 根据实际情况)

extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"

[sphinx]

extension=sphinx.so

php 安装shpinx扩展

标签:

原文地址:http://www.cnblogs.com/hyh123/p/5464615.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!