Error checkinglibxml2installdir... nocheckingforxml2-configpath... configure: error: xml2-confignotfound.Pleasecheckyourlibxml2installation. Check if libxm package [root@XKWB3403php-5.3.8] # rpm-qa | greplibxml2lib is installed
When installing php, the following error occurs: checking libxml2 install dir... no checking for xml2-config path... configure: error: xml2-config not found. please check your libxml2 installation. check if libxm package [root @ XKWB3403 php-5.3.8] # rpm-qa | grep libxml2 lib is installed
Php installation error
Checking libxml2 install dir... no
Check for xml2-config path...
Configure: error: xml2-config not found. Please check your libxml2 installation.
Check whether the libxm package is installed
[Root @ XKWB3403 php-5.3.8] # rpm-qa | grep libxml2
Libxml2-2.6.26-2.1.12
Libxml2-python-2.6.26-2.1.12
Reinstall libxml2 and libxml2-devel packages
Yum install libxml2
Yum install libxml2-devel-y
Find the xml2-config file after installation
[Root @ XKWB3403 php-5.3.8] # find/-name "xml2-config"
/Usr/bin/xml2-config
Reinstall php if any
[Root @ XKWB3403 php-5.3.8] #./configure
The installation is successful
Http://www.cnblogs.com/happyhotty/articles/2539864.html