【问题标题】:PHP Solr install not workingPHP Solr安装不起作用
【发布时间】: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


【解决方案1】:

我遇到了同样的问题,我只需要:

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

然后重新安装。

字体:link

【讨论】:

  • 此外,在 Ubuntu 上,您可能需要:{{sudo apt-get install libxml2-dev}}
  • 在我安装 libxml2-dev 时也在 Ubuntu 16.04.1 上工作 - 谢谢 Shehi
【解决方案2】:

您链接的解决方案只有在您实际将 curl 作为模块安装时才有效 - 如果您现在没有安装并重试。

【讨论】:

    猜你喜欢
    • 2011-09-13
    • 2014-06-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-28
    • 2014-08-06
    相关资源
    最近更新 更多