Faisal Hussain Faisal Hussain - 1 month ago 13
Linux Question

Dependency failed while installing php-gd on Centos 6

I am trying to install

php-gd
on my centos 6 machine but I am getting this error ... can anyone point me to the right direction? Thanks

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

Answer
# 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.

So should work. Please check remi-release and epel-release match the centOS version you are running, and that you don't have any other version of libwebp installed.