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.