执行:
./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.confcheckingforphp−fpmlogfilepath...prefix/logs/php-fpm.logchecking 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
就解决了