PHP for Linux xml2-config this file not found

Source: Internet
Author: User
TodayCentos5 compileInstallPhp5.2.4 error: PHP installation error
Configure: Error: xml2-config not found error cause, xml2-config thisFileNot found.

I found many problems on the Internet, because these two packages,
Libxml2-2.6.23-1.2.i386.Rpm
Libxml2-devel-2.6.23-1.2.i386.rpm */not installed.

Reinstall

Rpm-IVH
Libxml2-2.6.23-1.2.i386.rpm

Rpm-IVH
Libxml2-devel-2.6.23-1.2.i386.rpm

Try again./configure -- prefix =/usr/local/PHP
-- With-apxs =/usr/local/Apache -- With-MySQL

You can.Solution.

Yum
Install libxml2

Yum install libxml2-devel

Yum install
OpenSSL-devel

==================================

Checking for curl in
Default path... not found

Configure: Error: Please reinstall the libcurl
Distribution-

Easy. h shoshould be in
<Curl-dir>/include/curl/

solution: Yum install curl
Yum install
curl-devel

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.