当我尝试安装solr-beta时:
pecl install solr-beta
我收到此错误:
pecl / solr需要PHP扩展“curl”
找不到有效的包裹
安装失败
事情已经安装了curl,当我查看我的phpinfo页面时似乎启用了它.
解决方法
从
http://pecl.php.net/bugs/bug.php?id=17012&edit=1中提到的,pecl不识别没有静态编译成php的php模块.因此,如果您使用任何共享库,pecl将忽略它们.
Pecl也忽略了你的php.ini.
The good news is there are still two easy ways to install this if you
have curl as a shared extension:1) pear install pecl/solr
2) pecl install -n solr
那应该安装solr php模块.您必须通过修改php.ini文件来包含solr.so库.