Topic: php-gd module cannot be loaded.

Version: php-gd 5.5.16-1.el6.remi.1
OS: CentOS 6 x86.

I've installed the said module from the repo, but now everytime I tried to run PHP from bash, I got this error messsage:-

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: undefined symbol: gdImageWebpCtx in Unknown on line 0

This means my scripts cannot work at all now. Any suggestions?

Thanks.

Re: php-gd module cannot be loaded.

Which version of gd-last ?

# rpm -q php-gd gd-last
php-gd-5.6.0-1.el6.remi.1.x86_64
gd-last-2.1.0-3.el6.remi.x86_64
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: php-gd module cannot be loaded.

It is:-

rpm -q php-gd gd-last
php-gd-5.5.16-1.el6.remi.1.x86_64
package gd-last is not installed

Oh, so that's the problem. Removing the 'gd' package, and reinstalling php-gd and gd-last packages solves the problem. Thanks for the tip.

Re: php-gd module cannot be loaded.

You shouldn't be able to install php-gd without gd-last...

. php-gd  requires libgd.so.3
. gd-last provides libgd.so.3
. gd      provides libgd.so.2

But, issue fixed, so closing...

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