xml2-config not found. Please check your libxml2 installation

When config php source, there is an error:

xml2-config not found. Please check your libxml2 installation

In Synaptic, there is only libxml2 installed, while libxml2-dev is not installed. Just install libxml2-dev.

Or we can intall libxml2 using source code, like below:

sudo wget ftp://xmlsoft.org/libxml2/libxml2-2.6.28.tar.gz
sudo tar -zxvf libxml2-2.6.28.tar.gz
cd libxml2-2.6.28/
./configure
make
sudo make install
posted on 2011-09-21 18:22  -Anny-  阅读(439)  评论(0编辑  收藏  举报