当我尝试在 Ubuntu 上从源代码安装 php 5.3 stable (从http://www.php.net/downloads.php下载压缩安装文件)并运行时,./configure我收到此错误:
./configure
configure: error: xml2-config not found. Please check your libxml2 installation.
您需要做的就是安装安装包 libxml2-dev,例如:
sudo apt-get install libxml2-dev
在 CentOS/RHEL 上:
sudo yum install libxml2-devel