Compiling php-5.5.15 on CentOS today,
[Plain]View Plaincopy
- CD php-5.5.15
- ./configure--prefix=/usr/local/php/--with-config-file-path=/usr/local/php/etc/--enable-fpm
Return Error:
[Plain]View Plaincopy
- Checking libxml2 Install dir ... No
- Checking for Xml2-config path ...
- Configure:error:xml2-config not found. Please check your LIBXML2 installation.
Said it was libxml2 not installed, but with Yum installation found that has been installed
[Plain]View Plaincopy
- [email protected] process]# Yum install LIBXML2
- Loaded Plugins:fastestmirror
- Loading mirror speeds from cached hostfile
- Setting up Install Process
- Package libxml2-2.7.6-14.el6_5.2.i686 already installed and latest version
- Nothing to do
Check the data and found that the original need to install Libxml2-devel, the installation command again
[Plain]View Plaincopy
- Yum Install libxml2*-y
Then recompile PHP to compile successfully
Error compiling php-5.5.15, xml2-config not found