PHP installation error configure: error: xml2-confignotfound -- Linux Enterprise Application-Linux server application information, the following is read details. PHP installation error configure: error: xml2-config not found. Please check your libxml2 installation
When I reinstall mysql + apache + php and configure php, I get an error message.
./Configure -- prefix =/usr/local/php -- with-apxs =/usr/local/apache -- with-mysql
Configure: error: xml2-config not found. Please check your libxml2 installation.
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,
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
Now I try again./configure -- prefix =/usr/local/php -- with-apxs =/usr/local/apache -- with-mysql
Okay, no problem,
Make
Make install
Installation Complete
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