【问题标题】:CentOS 6: Transaction Check Error to install php-gdCentOS 6:安装 php-gd 的事务检查错误
【发布时间】:2017-03-01 04:24:49
【问题描述】:

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

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-Gd 并解决这个问题吗?

【问题讨论】:

    标签: php centos6 php-gd


    【解决方案1】:

    你有一个依赖错误 如果可以,请尝试删除它:

    yum 删除 gd-2.1.0-1.el6.x86_64

    然后尝试重新安装。

    【讨论】:

    • 我卸载并重新安装了 GD 库。之后问题就解决了谢谢!
    • gd-last 被设计成安装在系统 gd-2.0.35 旁边,不知道这个 gd-2.1.0 是从哪里来的。
    • 我认为你添加了一些外部回购,这有时会导致这类问题,因为外部回购有时不关心官方回购的一些依赖,或者简单的外部回购已经过时并且数据包询问也适用于过时的数据包,
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-10
    • 2017-01-18
    • 2015-09-15
    • 2021-04-12
    • 1970-01-01
    相关资源
    最近更新 更多