Configure: Error: xml2-config not found. Please check your libxml2 Installation

Source: Internet
Author: User

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

 

Compile later

Make & make install

 

 

 

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.