configure: error: XML configuration could not be found

时间:2023-03-10 08:12:37
configure: error: XML configuration could not be found

运行:

./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm

之后出现

Running FastCGI Process Manager checks

checking for php-fpm config file path... $prefix/etc/php-fpm.conf

checking for php-fpm log file path... $prefix/logs/php-fpm.log

checking for php-fpm pid file path... $prefix/logs/php-fpm.pid

checking for XML configuration

checking for xml2-config... no

checking for xml-config... no

configure: error: XML configuration could not be found

说明xml没有安装

运行:

yum -y install libxml2 libxml2-devel

就攻克了