码迷,mamicode.com
首页 > Web开发 > 详细

编译php-5.6出错,xml2-config not found

时间:2016-10-01 00:31:52      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:

今天在centos上编译PHP-5.6

cd php-5.6
./configure --prefix=/usr/local/php5.6/ --with-apxs2=/usr/local/apache.2.2/bin/ apxs

返回错误:

checking libxml2 install dir... no  
checking for xml2-config path...   
configure: error: xml2-config not found. Please check your libxml2 installation. 

说是libxml2没装,但是用yum安装时发现已经安装了

[root@localhost process]# yum install libxml2  
Loaded plugins: fastestmirror  
Loading mirror speeds from cached hostfile  
Setting up Install Process  
Package libxml2-2.7.6-14.el6_5.2.i686 already installed and latest version
Nothing to do

查资料后发现原来还需要安装libxml2-devel,再次执行安装命令

yum install libxml2* -y 

 

编译php-5.6出错,xml2-config not found

标签:

原文地址:http://www.cnblogs.com/xiaoqian1993/p/5925165.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!