configure: error: xml2-config not found. Please check your libxml2 installation
程序员文章站
2024-01-05 11:11:22
...
configure: error: xml2-config not found. Please check your libxml2 installation
安装php时的报错
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
检查是否安装了libxm包
[[email protected] ~]# rpm -qa |grep libxml2
libxml2-2.9.1-6.el7.5.x86_64
libxml2-devel-2.9.1-6.el7.5.x86_64
重新安装libxml2和libxml2-devel包
yum install libxml2
yum install libxml2-devel -y
安装完之后查找xml2-config文件是否存在
[[email protected] ~]# find / -name "xml2-config"
/usr/bin/xml2-config
如果存在的话重新安装php
[[email protected] ~]# ./configure
推荐阅读
-
源码安装php时出现configure: error: xml2-config not found. Please check your libxml2 installation...
-
configure: error: xml2-config not found. Please check your libxml2 installation
-
『踩坑记录』PHP-Linux编译PHP报错confogure error:xml2-config not found. Please check your libxml2 installation.
-
使用IntelliJ IDEA导入 Flink 消费kafka报错 Error: A JNI error has occurred, please check your installation an
-
configure: error: xml2-config not found. Please check your l
-
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.错误,sessioncheck_PHP教程