首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Centos 6上安装php-gd时,依赖项失败

在Centos 6上安装php-gd时,依赖项失败
EN

Stack Overflow用户
提问于 2016-09-22 09:41:38
回答 2查看 8.5K关注 0票数 2

我试图在我的centos 6机器上安装php-gd,但是我得到了这个错误.谁能给我指明正确的方向吗?谢谢

代码语言:javascript
复制
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.nayatel.com
 * epel: mirrors.nayatel.com
 * extras: mirrors.nayatel.com
 * remi: remi.schlundtech.de
 * remi-php56: remi.schlundtech.de
 * remi-safe: remi.schlundtech.de
 * rpmforge: ftp.heanet.ie
 * updates: mirrors.nayatel.com
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:5.6.26-1.el6.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.26-1.el6.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.26-1.el6.remi.x86_64
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.3-1.el6.remi will be installed
--> Processing Dependency: libwebp.so.5()(64bit) for package: gd-last-2.2.3-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: gd-last-2.2.3-1.el6.remi.x86_64 (remi)
           Requires: libwebp.so.5()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-09-22 12:01:22

代码语言:javascript
复制
# rpm -qf /usr/lib64/libwebp.so.5
libwebp-0.4.3-3.el6.x86_64

# yum info libwebp
Installed Packages
Name        : libwebp
Arch        : x86_64
Version     : 0.4.3
Release     : 3.el6
Size        : 659 k
Repo        : installed
From repo   : epel
Summary     : Library and tools for the WebP graphics format
URL         : http://webmproject.org/
License     : BSD
Description : WebP is an image format that does lossy compression of digital
            : photographic images. WebP consists of a codec based on VP8, and a
            : container based on RIFF. Webmasters, web developers and browser
            : developers can use WebP to compress, archive and distribute digital
            : images more efficiently.

也该起作用。请检查remi-releaseepel-release匹配您正在运行的centOS版本,并且您没有安装任何其他版本的libwebp

票数 0
EN

Stack Overflow用户

发布于 2016-11-03 12:03:45

我也有同样的问题要更新到PHP5.6,但是我发现libwebp可以从EPEL Centos 6 repo安装:

代码语言:javascript
复制
yum install epel-release

中默认情况下,可能要检查此选项是否已禁用。

代码语言:javascript
复制
/etc/yum.repos.d/epel.repo

然后

代码语言:javascript
复制
yum --enablerepo remi,epel install gd-last

安装了gd-最后一个软件包..。

然后回到原来的命令(更新为php 5.6)

代码语言:javascript
复制
yum --enablerepo remi,remi-php56 update php*
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39635549

复制
相关文章

相似问题

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