首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CentOS 6:安装php-gd的事务检查错误

CentOS 6:安装php-gd的事务检查错误
EN

Stack Overflow用户
提问于 2017-02-28 19:58:09
回答 1查看 1.1K关注 0票数 0

我有一个带有CentOS 6.8的VPS,在其中我试图安装PhP GD。我已经尝试过sudo yum install php-gd,因为我安装了其他库。当我这样做时,我得到以下信息:

代码语言:javascript
复制
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.daniel-jost.net
 * epel: mirror.23media.de
 * extras: mirror.ratiokontakt.de
 * ius: lon.mirror.rackspace.com
 * remi-php55: rpms.remirepo.net
 * remi-safe: rpms.remirepo.net
 * updates: mirror.23media.de
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:5.5.38-7.el6.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.5.38-7.el6.remi.x86_64
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.4-1.el6.remi will be installed
--> Processing Dependency: libwebp.so.5()(64bit) for package: gd-last-2.2.4-1.el6.remi.x86_64
--> Running transaction check
---> Package libwebp.x86_64 0:0.4.3-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
 Package           Arch             Version                     Repository            Size
===========================================================================================
Installing:
 php-gd            x86_64           5.5.38-7.el6.remi           remi-php55            78 k
Installing for dependencies:
 gd-last           x86_64           2.2.4-1.el6.remi            remi-safe            126 k
 libwebp           x86_64           0.4.3-3.el6                 epel                 210 k

Transaction Summary
===========================================================================================
Install       3 Package(s)

Total size: 415 k
Installed size: 1.3 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test

Transaction Check Error:
  file /usr/lib64/libgd.so.3 from install of gd-last-2.2.4-1.el6.remi.x86_64 conflicts with file from package gd-2.1.0-1.el6.x86_64

Error Summary
-------------

在行"Loading mirror speeds from cached hostfile"下面可以看到所有存储库的列表

这与我试图安装时所犯的错误相同:yum install php-tcpdf。据我所知,这是gd-last中的一个问题。但我不知道怎么解决这个问题。

知道我能做些什么来安装Php并解决这个问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-02-28 20:04:39

如果可以的话,尝试删除它时会出现依赖错误:

百胜去除gd-2.1.0-1.el6.x86_64

然后再试着重新安装。

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

https://stackoverflow.com/questions/42517659

复制
相关文章

相似问题

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