PHP Solr安装不起作用

Dev*_*xon 3 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
Run Code Online (Sandbox Code Playgroud)

还有其他解决办法吗?

wor*_*mer 12

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

sudo apt-get install libcurl4-gnutls-dev libxml2-dev
Run Code Online (Sandbox Code Playgroud)

并重新安装它.

字体:链接

  • 另外,在Ubuntu上你可能需要:{{sudo apt-get install libxml2-dev}} (4认同)