在LINUX服务器的XAMPP服务器中安装Solr [英] Installing Solr in a XAMPP server in a LINUX server

查看:137
本文介绍了在LINUX服务器的XAMPP服务器中安装Solr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将Solr PHP扩展安装到我的Web服务器.我已经有一个XAMPP服务器,并且正在使用PECL安装solr

I try to install Solr PHP extension to my webserver. I already have an XAMPP server and I'm using PECL to install solr

$ cd /opt/lampp/bin

$ sudo ./pecl install solr-1.0.1

但是我遇到了以下错误:

But I got the following error:

checking libxml2 install dir... /usr/lib
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
ERROR: `/tmp/pear/temp/solr/configure --enable-solr=yes --enable-solr-debug=no --with-curl=
/usr --with-libxml-dir=/usr/lib' failed

在安装过程中,它提示我输入路径:

During the installation it prompts me to input a path:

libxml2 install prefix [/usr] :

我尝试使用enter/usr/lib

我应该在那里输入什么才能得到一个错误?还是我应该如何安装才能避免出现错误?

What shall I input there to not get an error? Or how shall I install to not get an error?

现在我已经通过yum install libxml2-devel安装了libxml2.但是我现在遇到了一些奇怪的错误.这里只是其中的一些,结尾为:

Now I have libxml2 installed through yum install libxml2-devel. But I got some wierd errors now. Here are just a few of them, it ends with:

no such parameter
/tmp/pear/temp/solr/solr_types.h:388: error: declaration for parameter 'client_count' but no such parameter
/tmp/pear/temp/solr/solr_types.h:386: error: declaration for parameter 'document_count' but no such parameter 
/tmp/pear/temp/solr/solr_types.h:384: error: declaration for parameter 'request_count' but no such parameter 
/tmp/pear/temp/solr/php_solr.c:1185: error: expected '{' at end of input
make: *** [php_solr.lo] Error 1 ERROR: `make' failed

推荐答案

如果您使用的是RHEL/Fedora/CentOS/Scientific linux,则需要安装libxml2-devel

If you're using RHEL/Fedora/CentOS/Scientific linux then you need to install libxml2-devel

 yum install libxml2-devel

这篇关于在LINUX服务器的XAMPP服务器中安装Solr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆