linux - Unable to install gd extension on redhat 9 php remi php8.2 - Stack Overflow

I have installed PHP Remi on Red Hat 9 . when I am trying to install PHP gd extensionfor PHP remi 8.3

I have installed PHP Remi on Red Hat 9 . when I am trying to install PHP gd extension for PHP remi 8.3 then getting package php-gd-8.3.17-1.el9.remi.x86_64 from remi-modular requires libgd.so.103()(64bit) error; Same error happen for also remi PHP 8.2.

Here the error log:

[xxx@xxx yum.repos.d]$ sudo yum --enablerepo=remi install php-gd
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.

Last metadata expiration check: 1:24:25 ago on Mon 03 Mar 2025 05:57:44 AM CET.
Error:
 Problem: package php-gd-8.3.17-1.el9.remi.x86_64 from remi-modular requires libgd.so.103()(64bit), but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi
  - nothing provides libavif.so.14()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-9.el9.remi.x86_64 from remi
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-9.el9.remi.x86_64 from remi
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi-safe
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi-safe
  - nothing provides libavif.so.14()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi-safe
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-9.el9.remi.x86_64 from remi-safe
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-9.el9.remi.x86_64 from remi-safe
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Please note i have multiple version install on this redhat but only one version is active at time

[xxx@xxxx yum.repos.d]$  sudo dnf module list php
[sudo] password for abera:
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.

Last metadata expiration check: 1:46:52 ago on Mon 03 Mar 2025 05:50:52 AM CET.
Remi's Modular repository for Enterprise Linux 9 - x86_64
Name                               Stream                                     Profiles                                                    Summary
php                                remi-7.4                                   common [d], devel, minimal                                  PHP scripting language
php                                remi-8.0                                   common [d], devel, minimal                                  PHP scripting language
php                                remi-8.1                                   common [d], devel, minimal                                  PHP scripting language
php                                remi-8.2                                   common [d], devel, minimal                                  PHP scripting language
php                                remi-8.3 [e]                               common [d] [i], devel, minimal                              PHP scripting language
php                                remi-8.4                                   common [d], devel, minimal                                  PHP scripting language

ml-rhel9-dev-RHEL 9 x86_64 Appstream
Name                               Stream                                     Profiles                                                    Summary
php                                8.1                                        common [d], devel, minimal                                  PHP scripting language
php                                8.2                                        common [d], devel, minimal                                  PHP scripting language

also, install trying to install some lib using gd error log

Like:

sudo dnf search libraqm
sudo dnf search libimagequant
sudo dnf search libavif

but same error happen . Can anyone help me to fix the error on PHP remi 8.2 gd extension

I have installed PHP Remi on Red Hat 9 . when I am trying to install PHP gd extension for PHP remi 8.3 then getting package php-gd-8.3.17-1.el9.remi.x86_64 from remi-modular requires libgd.so.103()(64bit) error; Same error happen for also remi PHP 8.2.

Here the error log:

[xxx@xxx yum.repos.d]$ sudo yum --enablerepo=remi install php-gd
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.

Last metadata expiration check: 1:24:25 ago on Mon 03 Mar 2025 05:57:44 AM CET.
Error:
 Problem: package php-gd-8.3.17-1.el9.remi.x86_64 from remi-modular requires libgd.so.103()(64bit), but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi
  - nothing provides libavif.so.14()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-9.el9.remi.x86_64 from remi
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-9.el9.remi.x86_64 from remi
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi-safe
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi-safe
  - nothing provides libavif.so.14()(64bit) needed by gd3php-2.3.3-8.el9.remi.x86_64 from remi-safe
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-9.el9.remi.x86_64 from remi-safe
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-9.el9.remi.x86_64 from remi-safe
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Please note i have multiple version install on this redhat but only one version is active at time

[xxx@xxxx yum.repos.d]$  sudo dnf module list php
[sudo] password for abera:
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.

Last metadata expiration check: 1:46:52 ago on Mon 03 Mar 2025 05:50:52 AM CET.
Remi's Modular repository for Enterprise Linux 9 - x86_64
Name                               Stream                                     Profiles                                                    Summary
php                                remi-7.4                                   common [d], devel, minimal                                  PHP scripting language
php                                remi-8.0                                   common [d], devel, minimal                                  PHP scripting language
php                                remi-8.1                                   common [d], devel, minimal                                  PHP scripting language
php                                remi-8.2                                   common [d], devel, minimal                                  PHP scripting language
php                                remi-8.3 [e]                               common [d] [i], devel, minimal                              PHP scripting language
php                                remi-8.4                                   common [d], devel, minimal                                  PHP scripting language

ml-rhel9-dev-RHEL 9 x86_64 Appstream
Name                               Stream                                     Profiles                                                    Summary
php                                8.1                                        common [d], devel, minimal                                  PHP scripting language
php                                8.2                                        common [d], devel, minimal                                  PHP scripting language

also, install trying to install some lib using gd error log

Like:

sudo dnf search libraqm
sudo dnf search libimagequant
sudo dnf search libavif

but same error happen . Can anyone help me to fix the error on PHP remi 8.2 gd extension

Share Improve this question asked Mar 3 at 6:45 Amit BeraAmit Bera 7,6117 gold badges33 silver badges57 bronze badges 6
  • If the same error you refered to is about not registered, it is just a warning. The key is, can yum find those missing packages? – shingo Commented Mar 3 at 7:06
  • same error ...... – Amit Bera Commented Mar 3 at 7:11
  • ```[xxx@xxxxx yum.repos.d]$ sudo yum install php-gd [sudo] password for abera: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register. Last metadata expiration check: 2:20:14 ago on Mon 03 Mar 2025 05:50:52 AM CET. Error: Problem: package php-gd-8.3.17-1.el9.remi.x86_64 from remi-modular requires libgd.so.103()(64bit), but none of the providers can be installed - cannot install the best candidate for the job ```` – Amit Bera Commented Mar 3 at 7:12
  • I mean can you install libraqm/libimagequant/libavif? – shingo Commented Mar 3 at 10:29
  • simple , i want to install php gd extension – Amit Bera Commented Mar 3 at 12:26
 |  Show 1 more comment

2 Answers 2

Reset to default 1

Looks like EPEL is not installed or enabled as it provides missing dependencies

As explained in the FAQ

For memory for a proper repository configuration and usage follow the Wizard instructions

Try enabling CodeReady Builder Many EPEL packages require the CodeReady Builder (CRB) repository. It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

/usr/bin/crb enable

Or potentially use the fedora EPEL:

sudo dnf install \
https://dl.fedoraproject./pub/epel/epel-release-latest-9.noarch.rpm

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745106631a4611595.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信