linux - 请问CentOs 6.5升级到php5.5后如何打开GD扩展库?
PHPz
PHPz 2017-04-11 09:50:03
0
3
366

我用tp5做了一个项目,部署到了云服务器上【CentOs 6.5】,我安装lamp环境时yum获取的php是5.3的,因为框架需要,所以我就升级php内核到5.5.3,但是发现其缺少gd库,在低版本的php中只需在php.ini中打开extension = php_gd2就可以了,但是我发现在5.5中不行,于是我尝试安装gd库,可是我换了好几种方式也安装不了gd扩展,而且其缺少的依赖全是5.3的包,不知为何,请高手帮忙解决。

[root@VM_202_132_centos html]# yum install php-gd*
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * webtatic: us-east.repo.webtatic.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:5.3.3-48.el6_8 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-48.el6_8 for package: php-gd-5.3.3-48.el6_8.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-48.el6_8 will be installed
--> Processing Conflict: php55w-common-5.5.38-1.w6.x86_64 conflicts php-common < 5.5
--> Finished Dependency Resolution
Error: php55w-common conflicts with php-common-5.3.3-48.el6_8.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@VM_202_132_centos html]# 

PHPz
PHPz

学习是最好的投资!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!