Xml2-config not found. Please check your libxml2 installation.

Source: Internet
Author: User

Reinstall Fedora Core 5 today, reinstall MySQL + Apache + PHP, and get the error message when configure PHP
<PRE> <code>./configure -- prefix =/usr/local/PHP -- With-apxs =/usr/local/Apache -- With-MySQL
Configure: Error: xml2-config not found. Please check your libxml2 installation.
</Code> </PRE>
Error cause, xml2-config this file not found.
/* I remember that this problem was not solved when I installed PHP last time. The reason is that I installed fc5 this time and there were a lot of things I didn't choose, so there was always a problem. */
Install libxml2. The fc5 installation CD provides many rpm packages. I use a DVD, which is located in/Media/Disk/Fedora/RPMs,
<PRE> <code>
CD/Media/Disk/Fedora/RPMS
Ls * libxml *
/* Find these two useful packages, libxml2-2.6.23-1.2.i386.rpm libxml2-devel-2.6.23-1.2.i386.rpm */
Rpm-IVH libxml2-2.6.23-1.2.i386.rpm
/* Prompt that I have already installed */
Rpm-IVH libxml2-devel-2.6.23-1.2.i386.rpm
</Code> </PRE>
Now I try again./configure -- prefix =/usr/local/PHP -- With-apxs =/usr/local/Apache -- With-MySQL
Okay, no problem,
Make
Make install
Installation Complete

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.