douhan8430 2017-02-28 19:58
浏览 113
已采纳

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

I have a VPS with CentOS 6.8 in which I am trying to install PhP GD. I have tried sudo yum install php-gd, as I installed others libraries. When I do this, I get the following:

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
-------------

A list of all the repositories you can see below the line "Loading mirror speeds from cached hostfile"

It the same mistake I get when trying to install: yum install php-tcpdf. As I understood this is a problem in gd-last. But I don't understand how to solve this problem.

Any idea on what can I do to install Php-Gd and solve this?

  • 写回答

1条回答 默认 最新

  • doulao7572 2017-02-28 20:04
    关注

    You have a dependence error try deleting it if u can:

    yum remove gd-2.1.0-1.el6.x86_64

    and then try to install it again.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 安装CentOS6时卡住
  • ¥20 关于#监控系统#的问题,如何解决?(相关搜索:系统软件)
  • ¥20 c语言写的8051单片机存储器mt29的模块程序
  • ¥60 求直线方程 使平面上n个点在直线同侧并且距离总和最小
  • ¥50 java算法,给定试题的难度数量(简单,普通,困难),和试题类型数量(单选,多选,判断),以及题库中各种类型的题有多少道,求能否随机抽题。
  • ¥50 rk3588板端推理
  • ¥250 opencv怎么去掉 数字0中间的斜杠。
  • ¥15 这种情况的伯德图和奈奎斯特曲线怎么分析?
  • ¥250 paddleocr带斜线的0很容易识别成9
  • ¥15 电子档案元素采集(tiff及PDF扫描图片)