Topic: Problems installing php-devel-7.3 on CentOS 8

Hello,

I have problems installing php-devel package on CentOS 8 with enable PHP 7.3 stream:

dnf install php-devel
Last metadata expiration check: 0:02:48 ago on Fri 05 Feb 2021 10:19:34 AM UTC.
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides libedit-devel(x86-64) needed by php-devel-7.3.27-1.el8.remi.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

And I have all REMI repositories for CentOS 8 installed on the instance:

grep 'baseurl' /etc/yum.repos.d/remi*
/etc/yum.repos.d/remi-modular.repo:baseurl = rpms.remirepo.net/enterprise/$releasever/modular/$basearch/
/etc/yum.repos.d/remi.repo:baseurl = rpms.remirepo.net/enterprise/$releasever/remi/$basearch/
/etc/yum.repos.d/remi-safe.repo:baseurl = rpms.remirepo.net/enterprise/$releasever/safe/$basearch/

Note: I have intentionally removed https:// in front of repo URLs, so I'm able to post.

What could be the problem?

Re: Problems installing php-devel-7.3 on CentOS 8

You need to enable the PowerTool repository (CodeReadyBuilder on RHEL)


Notice: php-devel is only needed to build extension... and most extensions are available as package.

See the list: https://blog.remirepo.net/pages/PECL-ex … RPM-status

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: Problems installing php-devel-7.3 on CentOS 8

Remi wrote:

You need to enable the PowerTool repository (CodeReadyBuilder on RHEL)

Arghhh... I had the following:

dnf config-manager --set-enabled PowerTools

instead of the following (note the letter case in repo name):

dnf config-manager --set-enabled powertools

which seem to have remained from before CentOS 8.3, but strange with PHP 7.4 there was no such problem. Anyway, enabling the repository solved the problem.

Remi wrote:

Notice: php-devel is only needed to build extension... and most extensions are available as package.

Yes, I'm well aware of this, but I need to build a custom PHP module.

Thanks again for your help!