Configure error Xml2-config not found. Please check your LIBXML2 installation error.
rhel6.5 Install PHP 5.4.3 Configure error Xml2-config not found. Please check your LIBXML2 installation error
Check if the LIBXM package is installed
[Email protected] software]# Rpm-qa |grep libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12
Reinstall the LIBXML2 and Libxml2-devel packages, Yum installed when the new version will be prompted to update, need to update the update, do not skip the line.
[email protected]/]# Yum install LIBXML2
[email protected]/]# Yum install libxml2-devel-y
Find out if the Xml2-config file exists after installation
[[email protected]/] # Find/-name "Xml2-config"
/usr/bin/xml2-config
Reinstall PHP if it exists
[Email protected] php-5.4.3]#./configure
[[email protected] php-5.4.3]# make
[[email protected] php-5.4.3]# make install
After installing PHP do not forget to configure the next php.ini file,
[email protected] php-5.4.3]# CP Php.ini-production/usr/local/lib/php.ini
You can also add a compilation parameter directly after the make install--with-config-file-path=/usr/local/php/etc specify your own php.ini path and then from the source CP past PHP.ini There's a php.ini-development and php.ini-production in the source code. If it is not the local debug mode, select the latter.
This article is from the "Target: India" blog, please be sure to keep this source http://shunzi115.blog.51cto.com/5184443/1766329
PhP Common Installation Error Configure error Xml2-config not found. Please check your LIBXML2 installation