CentOS里想编译php,出现错误:

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

经过查找,找到解决办法,执行如下指令:

yum -y install libxml2-devel

执行后再次编译既可。

Related Posts: PHP configure: error: xml2-config not found. Please check your libxml2 installation. :