Ubuntu errors when installing PHP -- xml2-confignotfound.

Source: Internet
Author: User
In Ubuntu and then install php, after configure, and the error prompt: error: xml2-confignotfound.Pleasecheckyourlibxml2installation. I found the solution on the Internet: The same as when compiling MySQL, this is because the system lacks the library file required for PHP, according to the prompt, perform the following operations: sudoapt-getinstalllibxml2 (

In Ubuntu and then install php, after configure, there is an error prompt: error: xml2-config not found. Please check your libxml2 installation. I found the solution on the Internet:

This is the same as compiling MySQL because the system lacks the library files required by PHP. Follow the prompts to perform the following operations:

Sudo apt-get install libxml2 (press the Tab key)

The following information is displayed:

Libxml2 libxml2-dev libxml2-headers libxml2-utils

Here you need to install the libxml2-dev software package (the software comes with Ubuntu-Server, you need to use the Ubuntu-Server disc installation), the operation is as follows:

Sudo apt-get install libxml2-dev

After the library file is installed, reconfigure PHP

After compilation, you will see the words "Thank you for using PHP.", indicating that PHP has been configured successfully.

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.