在LINUX服务器的XAMPP服务器中安装Solr

| 我尝试将Solr PHP扩展安装到我的Web服务器。我已经有XAMPP服务器,并且正在使用PECL安装solr
$ cd /opt/lampp/bin
$ sudo ./pecl install solr-1.0.1
但是我收到以下错误:
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
在安装过程中,它提示我输入路径:
libxml2 install prefix [/usr] :
我尝试过
enter
/usr/lib
我应该在那里输入什么才能得到错误?还是我应该如何安装才能避免出现错误? 现在我通过
yum install libxml2-devel
安装了libxml2。但是我现在遇到了一些奇怪的错误。这里只是其中的一些,结尾为:
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
 yum install libxml2-devel
    
        我可以通过系统软件包管理器轻松安装PECL Solr,这也许也对您有效。我发现这很容易,因此值得分享(Fedora 14):
$ sudo yum install php-pecl-solr
过了一会儿,我安装了
php-pecl-solr-0.9.11-1.fc14.x86_64
,该软件包的fedora主页在这里。 我可以使用以下命令找到libxml2版本:
$ locate libxml2.so
也许这也是有帮助的。     
        一些有用的链接:   http://projects.mediashelf.us/projects/8/wiki/Setting_up_Fedora_and_Solr_for_use_with_ActiveFedora#Install-Solr      http://oxfordrepo.blogspot.com/2008/01/populating-search-engine-apache-solr.html     

要回复问题请先登录注册