当前位置: 代码迷 >> PHP >> php增添solr扩展 in ubuntu
  详细解决方案

php增添solr扩展 in ubuntu

热度:541   发布时间:2013-07-09 09:50:47.0
php添加solr扩展 in ubuntu

//安装php的solr

sudo?apt-get?install?php5-curl?

sudo?apt-get?install?libcurl4-gnutls-dev?

sudo?apt-get?install?libxml2?

sudo?apt-get?install?libxml2-dev?

sudo?pecl?install?-n?solr-beta?

sudo?vi?/etc/php5/conf.d/solr.ini

//修改solr.ini

//添加以下语句

extension=solr.so

?

如果出现问题?make: not found, 需要执行 ?sudo apt-get install build-essential, 然后再执行?sudo?pecl?install?-n?solr-beta

?

根据下文实践的结果:

http://www.wijiti.com/help/37-jsolr/140-installing-apache-solr-php-extension