本文介绍了如何解决从安装PHP从源代码时找不到xml2-config错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试在Ubuntu上从源代码安装php 5.3 stable时(从),我运行 ./ configure
我得到这个错误:
When I try to install php 5.3 stable from source on Ubuntu (downloading compressed installation file from http://www.php.net/downloads.php) and I run ./configure
I get this error:
configure: error: xml2-config not found. Please check your libxml2 installation.
推荐答案
所有你需要做的安装包libxml2-dev例如:
All you need to do instal install package libxml2-dev for example:
sudo apt-get install libxml2-dev
在CentOS / RHEL上:
On CentOS/RHEL:
sudo yum install libxml2-devel
这篇关于如何解决从安装PHP从源代码时找不到xml2-config错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!