在VPS上安装Solr PHP

时间:2017-02-10 14:20:23

标签: php solr vps

我试图通过WHM cpanel在我的VPS主机服务器上安装solr php扩展,但它让我犯了这个错误:

downloading solr-2.4.0.tgz ...
Starting to download solr-2.4.0.tgz (256,316 bytes)
.....................................................done: 256,316 bytes
64 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
Enable Solr Debugging (Compiles solr in debug mode) [no] : libcURL install         prefix [/usr] : libxml2 install prefix [/usr] : building in /opt/cpanel/ea-        php56/root/usr/var/tmp/php-pear/pear-build-rootalFRv4/solr-2.4.0
running: /opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/solr/configure --    with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --enable-solr-    debug=no --with-curl=/usr --with-libxml-dir=/usr

...

checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to     regenerate PHP parsers.
checking for gawk... gawk
checking for cURL support... yes, shared
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
ERROR: `/opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/solr/configure --    with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --enable-solr-        debug=no --with-curl=/usr --with-libxml-dir=/usr' failed

有没有其他方法可以安装它?

1 个答案:

答案 0 :(得分:0)

通过发出以下命令确保是否安装了libcurl。

<% dd = "Click on link to #{link_to 'View ', "www.google.com"} asdad".to_s %>  
Message.create(:user_id => current_user.id, :cnt => dd)

如果列表中没有填充libcurl,您需要按照以下方式安装它。

yum list|grep curl

安装cURL后,它将安装在/ usr / bin / curl。

再次尝试安装Solr PHP。