PhP Common installation errors configureerrorxml2-confignotfound.p configure error xml2-config not found. please check your libxml2 installation
Sendos 5.5 install PHP 5.4.3 reports configure error xml2-config not found. please check your libxml2 installation error
Check whether the libxm package is installed
[Root @ rh-linux software] # rpm-qa | grep libxml2
Libxml2-2.6.26-2.1.12
Libxml2-python-2.6.26-2.1.12
Reinstall libxml2 and the libxml2-devel package, yum installation found that the new version will prompt updates, you need to update can be updated, do not skip on the line.
[Root @ rh-linux/] # yum install libxml2
[Root @ rh-linux/] # yum install libxml2-devel-y
Find the xml2-config file after installation
[Root @ rh-linux/] # find/-name "xml2-config"
/Usr/bin/xml2-config
Reinstall php if any
[Root @ rh-linux php-5.4.3] #./configure
[Root @ rh-linux php-5.4.3] # make
[Root @ rh-linux php-5.4.3] # make install
After installing php, do not forget to configure the php. ini file,
# Cp php. ini-production/usr/local/lib/php. ini
You can also add a compilation parameter -- with-config-file-path =/usr/local/php/etc to make install to specify your php. ini path and cp from the source code to php. the ini source code contains php. ini-development and php. ini-production if the latter is not selected for local debugging mode