Ubuntu error--xml2-config not found when installing PHP

Source: Internet
Author: User

when installing PHP under Ubuntu, after configure, there is an error message: Error:xml2-config not found. Please check your LIBXML2 installation.

This is because the system is missing the library files required by PHP, as prompted to do the following:

sudo apt-get install libxml2 (Press the TAB key)

You will see the following information:

LIBXML2 Libxml2-dev libxml2-headers Libxml2-utils

Here you need to install the Libxml2-dev software package (the software is Ubuntu-server comes with, you need to use the Ubuntu-server CD-ROM installation), the operation is as follows:

sudo apt-get install Libxml2-dev

Once the library file is installed, reconfigure PHP, when the compilation is complete, you will see "Thank for using PHP." Indicates that PHP has been configured successfully .

Ubuntu error--xml2-config not found when installing PHP

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.