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包
[root@localhost ~]# 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文件是否存在
[root@localhost ~]# find / -name "xml2-config"
/usr/bin/xml2-config
如果存在的话重新安装php
[root@localhost ~]# ./configure