PHP Solr 安装不工作

标签 php solr centos pecl centos6

我在尝试使用 pecl 扩展安装 solr 时遇到了错误。我读过这个:

我在 centos 6 服务器上使用 php 5.3.3。

两次我都遇到同样的问题:

pecl install -n solr-beta or pecl install -n solr or pear install pecl/solr

Enable Solr (yes of course) [yes] : 
Enable Solr Debugging (Compiles solr in debug mode) [no] : 
libcURL install prefix [/usr] : 
libxml2 install prefix [/usr] : 

checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/
ERROR: `/var/tmp/solr/configure --enable-solr=yes --enable-solr-debug=no --with-curl=/usr --with-libxml-dir=/usr' failed

是否有其他修复方法?

最佳答案

我有同样的问题,我只需要做的是:

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

然后重新安装。

字体:link

关于PHP Solr 安装不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10962291/

相关文章:

linux - 如何在 CentOS 中不设置帐户就授予访问权限

PHP-FPM 和 Nginx : "Resource temporarily unavailable" errors in proxy_error_log

phpenmod 显示来自其他 php 版本的路径

php - Woocommerce 日期选择器始终开启

java - 在 php 中登录到服务器端时在 android 中进行 session 处理

solr - apache solr 删除复制字段

php - 在 php Solr 中添加多个值

php - 向 Solr 发布更新会导致重复

php - JWT auth laravel 上的 invalid_credentials

python - CentOS 5.7 上的 mod_wsgi 禁止错误