Topic: Dependency error Installing php70-php-gd on an Amazon Linux instance

Hi Remi,
        I tried to install php70-php-gd from your repository on to an recent Amazon Linux instance and got the following error:-
Loaded plugins: priorities, update-motd, upgrade-helper
249 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php70-php-gd.x86_64 0:7.0.7-1.el6.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php70-php-gd-7.0.7-1.el6.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php70-php-gd-7.0.7-1.el6.remi.x86_64
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.1-2.el6.remi will be installed
--> Processing Dependency: libwebp.so.5()(64bit) for package: gd-last-2.2.1-2.el6.remi.x86_64
--> Processing Dependency: libtiff.so.3()(64bit) for package: gd-last-2.2.1-2.el6.remi.x86_64
--> Running transaction check
---> Package compat-libtiff3.x86_64 0:3.9.4-10.13.amzn1 will be installed
---> Package gd-last.x86_64 0:2.2.1-2.el6.remi will be installed
--> Processing Dependency: libwebp.so.5()(64bit) for package: gd-last-2.2.1-2.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: gd-last-2.2.1-2.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

The same installation worked perfectly a couple of weeks ago.

I am not sure how to proceed...

Re: Dependency error Installing php70-php-gd on an Amazon Linux instance

See: http://rpms.remirepo.net/rpmphp/zoom.php?rpm=libwebp

libwebp is part of EPEL repository which is mandatory with my repo.


P.S. previous version (gd 2.1)  was using old libvpx instead of more modern libwebp

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Dependency error Installing php70-php-gd on an Amazon Linux instance

Hi,

Just adding the epel repo doesn't solve it, as the packages in the amzn-main repository seem to overrule those in the epel repository.
If the libwebp package in the amzn-main repo are excluded it should work:

# cat /etc/yum.repos.d/amzn-main.repo
[amzn-main]
...
exclude = libwebp*


Before excluding:

# yum list| grep libweb
libwebp.i686                         0.3.0-3.5.amzn1               amzn-main
libwebp.x86_64                       0.3.0-3.5.amzn1               amzn-main
libwebp-devel.x86_64                 0.3.0-3.5.amzn1               amzn-main
libwebp-java.x86_64                  0.3.0-3.5.amzn1               amzn-main
libwebp-tools.x86_64                 0.3.0-3.5.amzn1               amzn-main

After excluding:

# yum list| grep libweb
libwebp.i686                           0.4.3-3.el6                  epel
libwebp-devel.i686                     0.4.3-3.el6                  epel
libwebp-java.x86_64                    0.4.3-3.el6                  epel
libwebp-tools.x86_64                   0.4.3-3.el6                  epel

Hope this helps!

Re: Dependency error Installing php70-php-gd on an Amazon Linux instance

@maarten_k: thanks for this explanation.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi