PhP Common Installation Error Configure error Xml2-config not found. Please check your LIBXML2 installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.