PhP 常见安装错误configure error xml2-config not found. please check your libxml2 installation

简介:

编译PHP的时候报错:

 安装 PHP 5.4.3 报 configure error xml2-config not found. please check your libxml2 installation 错误

检查是否安装了libxm包

[root@rh-linux software]# rpm -qa |grep  libxml2  // 查看当前已经安装点包

libxml2-2.6.26-2.1.12

libxml2-python-2.6.26-2.1.12

重新安装libxml2和libxml2-devel包, yum安装的时候发现新版本会提示更新,需要更新的可以更新,不要跳过就行了。

[root@rh-linux /]# yum install libxml2

[root@rh-linux 


/]# yum install libxml2-devel -y

安装完之后查找xml2-config文件是否存在

[root@rh-linux /] # find / -name "xml2-config"

/usr/bin/xml2-config



本文转自 维度2018 51CTO博客,原文链接:http://blog.51cto.com/xinsz08/1795744,如需转载请自行联系原作者
相关文章
|
6月前
|
监控 Dubbo 搜索推荐
No application config found or it‘s not a valid config! Please add <dubbo:application name=“...“ />
No application config found or it‘s not a valid config! Please add <dubbo:application name=“...“ />
541 1
|
5月前
|
Java
解决:Config service failed to start in 120 seconds! Please check ./service/apollo-service.log...
解决:Config service failed to start in 120 seconds! Please check ./service/apollo-service.log...
56 0
syberh:未检测到已安装的target,请先安装target/找不到项目配置文件project.config.json,请确定当前目录是Syberh项目根目录!
syberh:未检测到已安装的target,请先安装target/找不到项目配置文件project.config.json,请确定当前目录是Syberh项目根目录!
172 0
|
移动开发 PHP
Visual Studio Code中的PHP提示错误:End of line character is invalid
Visual Studio Code中的PHP提示错误:End of line character is invalid
88 0
|
XML JSON PHP
PHP解析json、xml错误
php内置函数json_decode() 可以解析json字符串 但是有的时候看起来正确的json,解析却一直返回null。 你知道吗,json是可能解析失败的,此时PHP不会产生提示。 我们需要手动通过json_last_error()函数获取
184 0
|
JSON Cloud Native 安全
can not get cluster name in registry config ‘service.vgroupMapping.xx‘, please make sure registry
can not get cluster name in registry config ‘service.vgroupMapping.xx‘, please make sure registry
1664 0
can not get cluster name in registry config ‘service.vgroupMapping.xx‘, please make sure registry
|
PHP
PHP错误与异常
PHP语言中错误与异常
74 0
PHP错误与异常
|
JavaScript PHP
PHP从零开始--错误处理&&函数
PHP从零开始--错误处理&&函数
PHP从零开始--错误处理&&函数
|
Web App开发 监控 应用服务中间件
PHP 脚本自动监控 Nginx 504错误
#!/usr/bin/php 将该文件命名为 504check.php修改权限 chmod +x 504check.php 然后crontab -e添加一行 * * * * * /xx/504check.php >/dev/null 2>&1 每分钟系统就会自动检测网站是否响应很慢,若如此,则重启。
1009 0