我试图在我的centos 6机器上安装php-gd,但是我得到了这个错误.谁能给我指明正确的方向吗?谢谢
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发布于 2016-09-22 12:01:22
# 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-release和epel-release匹配您正在运行的centOS版本,并且您没有安装任何其他版本的libwebp。
发布于 2016-11-03 12:03:45
我也有同样的问题要更新到PHP5.6,但是我发现libwebp可以从EPEL Centos 6 repo安装:
yum install epel-release中默认情况下,可能要检查此选项是否已禁用。
/etc/yum.repos.d/epel.repo然后
yum --enablerepo remi,epel install gd-last安装了gd-最后一个软件包..。
然后回到原来的命令(更新为php 5.6)
yum --enablerepo remi,remi-php56 update php*https://stackoverflow.com/questions/39635549
复制相似问题