资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

安装PHP可能会出现的错误

错误1:

为寻乌等地区用户提供了全套网页设计制作服务,及寻乌网站建设行业解决方案。主营业务为成都做网站、成都网站建设、寻乌网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!

configure: error: xml2-config not found. Please check your libxml2 installation.

解决:

[root@tpp php-5.3.27]# yum install -y libxml2-devel

错误2:

configure: error: Cannot find OpenSSL's 

解决:

[root@tpp php-5.3.27]# yum install -y openssl openssl-devel

错误3:

checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution

解决:

[root@tpp php-5.3.27]# yum install -y bzip2 bzip2-devel

错误4:

configure: error: png.h not found.

解决:

[root@tpp php-5.3.27]# yum install -y libpng libpng-devel

错误5:

configure: error: freetype.h not found

解决:

[root@tpp php-5.3.27]# yum install -y freetype freetype-devel

错误6:

configure: error: jpeglib.h not found.

解决:

[root@tpp php-5.3.27]# yum install -y libjpeg-devel

错误7:

configure: error: png.h not found.

解决:

[root@tpp php-5.3.27]# yum install -y libpng libpng-devel

错误8:

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

解决:

[root@tpp php-5.3.27]# rpm -ivh "http://www.aminglinux.com/bbs/data/p_w_upload/forum/month_1211/epel-release-6-7.noarch.rpm"   
[root@tpp php-5.3.27]# yum install -y libmcrypt-devel  

因为CentOS默认的yum源没有libmcrypt-devel包,所以只能借助第三方yum源。

http://www.apelearn.com/bbs/forum.php?mod=viewthread&tid=6721&highlight=epel


本文标题:安装PHP可能会出现的错误
本文地址:http://cdkjz.cn/article/joegci.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220