安装php时的报错

checking libxml2 install dir... no
checking for xml2-config path... 
configure: error: xml2-config not found. Please check your libxml2 installation.

检查

rpm -qa | grep libxml2

重新安装libxml2

yum -y install libxml2 libxml2-devel

安装完成后

find / -name "xml2-config"

05-04 08:48