Error:xml2-config not found. Please check your LIBXML2 installation
Faint de happiness
When installing PHP, after configure, there is an error message: Error:xml2-config not found. Please check your LIBXML2 installation. Error Reason: Xml2-config This file is not found
Error: Xml2-config is missing. Please check your LIBXML2 installation
Same as when compiling MySQL, because the system is missing the library files required by PHP.
Check if the LIBXM package is installed
[Email protected] php-5.3.2]# 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-y Install LIBXML2 libxml2-*
Find out if the Xml2-config file exists after installation
[[email protected] php-5.3.2]# Find/-name "Xml2-config"
/usr/bin/xml2-config
Reinstall PHP if it exists
[Email protected] php-5.3.2]#/configure--prefix=/usr/local/php5--enable-mbstring--with-apxs2=/usr/local/ Apache2/bin/apxs
--with-mysql=/usr/local/mysql--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP5
And then compile the
[[email protected] php-5.3.2]# make && make install
Linux install php times wrong: Error:xml2-config not found. Please check your LIBXML2 installation