首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装php-gd时出错

安装php-gd时出错
EN

Server Fault用户
提问于 2015-06-16 00:20:12
回答 1查看 988关注 0票数 1

我用remi安装了php,现在我想安装php。我试图为我的CentOS 7安装php,但是我得到了以下错误:

代码语言:javascript
复制
sudo yum install php-gd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: repos.redrockhost.com
 * epel: mirrors.syringanetworks.net
 * extras: centos.sonn.com
 * updates: mirror.compevo.com
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:5.4.16-23.el7_0.3 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-23.el7_0.3 for package: php-gd-5.4.16-23.el7_0.3.x86_64
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.16-23.el7_0.3.x86_64
--> Running transaction check
---> Package php-gd.x86_64 0:5.4.16-23.el7_0.3 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-23.el7_0.3 for package: php-gd-5.4.16-23.el7_0.3.x86_64
---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed
--> Finished Dependency Resolution
Error: Package: php-gd-5.4.16-23.el7_0.3.x86_64 (base)
           Requires: php-common(x86-64) = 5.4.16-23.el7_0.3
           Installed: php-common-5.5.17-2.el7.remi.x86_64 (@remi-php55)
               php-common(x86-64) = 5.5.17-2.el7.remi
           Available: php-common-5.4.16-23.el7_0.3.x86_64 (base)
               php-common(x86-64) = 5.4.16-23.el7_0.3
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有人能帮我一下吗?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2015-06-16 00:41:46

问题是,如果您还没有启动remi- The 55 repo,您可能也需要启用--我很肯定您会运行类似于yum install php-gd --enablerepo=remi,remi-php55的程序。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/699251

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档