When config php source, there is an error:

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

相关文章: