Topic: Problem with php-gd 5.4.13 / libjpeg on RHEL 6.2

I'm having problems trying to upgrade php at the moment - seems to be a problem with the php-gd package and libjpeg:

$ sudo yum upgrade --enablerepo=remi
[sudo] password for foo:
Loaded plugins: rhnplugin
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:5.4.12-1.el6.remi will be updated
---> Package php-cli.x86_64 0:5.4.13-1.el6.remi will be an update
---> Package php-common.x86_64 0:5.4.12-1.el6.remi will be updated
---> Package php-common.x86_64 0:5.4.13-1.el6.remi will be an update
---> Package php-fpm.x86_64 0:5.4.12-1.el6.remi will be updated
---> Package php-fpm.x86_64 0:5.4.13-1.el6.remi will be an update
---> Package php-gd.x86_64 0:5.4.12-1.el6.remi will be updated
---> Package php-gd.x86_64 0:5.4.13-1.el6.remi will be an update
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: php-gd-5.4.13-1.el6.remi.x86_64
---> Package php-mysql.x86_64 0:5.4.12-1.el6.remi will be updated
---> Package php-mysql.x86_64 0:5.4.13-1.el6.remi will be an update
---> Package php-pdo.x86_64 0:5.4.12-1.el6.remi will be updated
---> Package php-pdo.x86_64 0:5.4.13-1.el6.remi will be an update
--> Finished Dependency Resolution
Error: Package: php-gd-5.4.13-1.el6.remi.x86_64 (remi)
           Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

$ sudo yum list --enablerepo=remi libjpeg
Loaded plugins: rhnplugin
Installed Packages
libjpeg.x86_64 6b-46.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
Available Packages
libjpeg.i686   6b-46.el6 rhel6-x86_64-20120411

Re: Problem with php-gd 5.4.13 / libjpeg on RHEL 6.2

You need libjpeg-turbo-1.2.1-1.el6.x86_64 (from RHEL 6.4 updates)

From my yum.log

Feb 24 19:40:36 Installed: libjpeg-turbo-1.2.1-1.el6.x86_64
Feb 24 19:58:57 Erased: libjpeg

And

# yum install 'libjpeg.so.62(LIBJPEG_6.2)(64bit)'
Package libjpeg-turbo-1.2.1-1.el6.x86_64 already installed and latest version
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: Problem with php-gd 5.4.13 / libjpeg on RHEL 6.2

Ok, upgrading to RHEL 6.4 solved it. Cheers!

Re: Problem with php-gd 5.4.13 / libjpeg on RHEL 6.2

smile

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