加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

PHP Solr安装不起作用

发布时间:2020-12-13 22:03:50 所属栏目:PHP教程 来源:网络整理
导读:我遇到了尝试使用pecl扩展程序安装solr的错误.我读过这个: Trying to install pecl Solr extension but it needs curl(服务器故障) 我在centos 6服务器上使用php 5.3.3. 两次我都遇到同样的问题: pecl install -n solr-beta or pecl install -n solr or pe
我遇到了尝试使用pecl扩展程序安装solr的错误.我读过这个:

> Trying to install pecl Solr extension but it needs curl(服务器故障)

我在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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读