Installing Solr in a XAMPP server in a LINUX server(在 LINUX 服务器中的 XAMPP 服务器中安装 Solr)
问题描述
我尝试将 Solr PHP 扩展安装到我的网络服务器.我已经有一个 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
但我收到以下错误:
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 安装前缀 [/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 LINUX 服务器中的 XAMPP 服务器中安装 Solr
基础教程推荐
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 如何替换eregi() 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
