PHP for Linux之xml2-config这个文件没找到

今天在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 <curl-dir>/include/curl/

Solution:yum install curl
yum install curl-devel
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值