Site icon 时鹏亮的Blog

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

请知悉:本文最近一次更新为 10年 前,文中内容可能已经过时。

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

执行后再次编译既可。


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《PHP configure: error: xml2-config not found. Please check your libxml2 installation.》相关的博文:

Exit mobile version