【发布时间】:2019-04-25 01:14:57
【问题描述】:
我在尝试使用 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
还有其他解决方法吗?
【问题讨论】:
-
另一个修复?你的解决方法是什么?你甚至安装了 libcurl 吗?你的 libcurl 使用的是哪个 ssl 层?
-
Curl 已安装。我使用 curl 通过 Postmarkapp 发送电子邮件。那不是问题。问题出现在他们使用不同的设置?我通过从 google repo 下载 solr-php-client 并使用它来解决问题。但它解决了 pecl 的实际问题。
-
您遵循了哪个 solr 安装指南?请按照teq.kefh.in/apache-solr-installation-and-configuration进行全新安装
标签: php solr centos pecl centos6