Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When installing php I configure it like so:

./configure --prefix=/wwwroot/php --with-apxs2=/wwwroot/bin/apxs --with-configure-file-path=/wwwroot/php --with-mysql --with-gd

And a configure error shows up saying this:

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

What's this all about? And how settle the problem?

share|improve this question

Not only do you need to install the libxml2 library, but you need to install the libxml2-dev package. This package installs all the necessary headers so that your compile script will be able to find them and include them. This is true of just about any other package that your compile script might complain about. Look for a [package name]-dev package to install.

share|improve this answer

You have to install the libxml2 library first

share|improve this answer
    
Have installed it (packages.ubuntu.com/hardy/i386/libxml2/download), but still the same error. – Emenims Feb 24 '10 at 9:05

You must log in to answer this question.