红联Linux门户
Linux帮助

xml2-config这个文件没找到

发布时间:2008-08-24 00:21:53来源:红联作者:checked
今天在CentOS5下编译安装PHP5.2.4时出现错误:PHP安装错误 configure: error: xml2-config not found 错误原因,xml2-config这个文件没找到。

网上查了下很多遇到这个问题的,原因是这两个包, libxml2-2.6.23-1.2.i386.rpm libxml2-devel-2.6.23-1.2.i386.rpm */ 没有安装。

重新安装

rpm -ivh libxml2-2.6.23-1.2.i386.rpm

rpm -ivh libxml2-devel-2.6.23-1.2.i386.rpm

再重新./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache --with-mysql

即可解决。

yum install libxml2
yum install libxml2-devel

yum install openssl-devel
=============================

checking for CURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/

Solution:yum install curl
yum install curl-devel
文章评论

共有 0 条评论