Linux configure:error:xml2-config not found. Please check your LIBXML2 installation

Source: Internet
Author: User

The problem arises :

When downloading and installing the source package

problem Package Link:

php5.3.22 Source Package

problem Extension:

Linux system installation files are divided into: source Package (tar.gz) and non-source package (Rpm,deb, non-source tar.gz), install the source package needs to enter the decompression directory. The author extracts the catalogue as:/home/ccc/downloads/php5.3.22

1. After using the CD command to enter php5.3.22, to view the contents of the folder, most of the installation files and readme files will be installed in the Readme file, the detailed steps to install the software. Many newbies like me will make the same mistake: Do not enter the extracted files directory /home/ccc/downloads/php5.3.22 will execute the Configure command, which will cause the installation of inexplicable errors, recommended to enter.

2. Set the installation directory sudo./configure--prefix= Your installation path

(1) The installation directory of the RPM or Deb package is default when the software is developed, so there is no need to change it.


(2) The source package will be set to:/usr/local/(under normal circumstances)

Execute command

After completion, the makefile will be generated automatically when the directory is unzipped.

(3) . make this process takes longer depending on the installation package.

(4). If the make command does not produce an error, make install completes the installation. Once the make command has an error, you can use make clean to clear all the files generated by the build. Because none of the operations are written to the installation directory that you really defined, that is the author-defined/usr/local/php5.3.22/, before you perform the make install.


The problem arises:

Tip :configure:error:xml2-config not found. Please check your LIBXML2 installation

Workaround:

Execute sudo apt-get install libxml2

After the prompt succeeds or exists, execute again

If the Configure:error:xml2-config not found also appears . Please check your LIBXML2 installation error, you may be missing libxml2-dev.

Execute the sudo apt-get install Libxml2-dev.

The php5.3.22 can be installed smoothly after successful.

These are just an example of a similar problem that can only be solved with similar problems.


Supplementary questions:

Although each software will have a non-source package and source package, then we should install Which?

It really depends on what you're going to do. If you are a server, and the performance requirements are relatively high, then the recommended source package.

If you are a PC, you can use it, then recommend non-source package

Linux 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.