Rocky 9.5 install perl

Hi,
Today I tried install perl on fresh Rocky Linux 9.5 but I have got errors about dependence.

It’s look like gcc expect ‘libgomp = 11.5.0-2.el9’ but only available is ‘11.5.0-5’.

Any tip?

$ sudo dnf install perl
Last metadata expiration check: 3:43:05 ago on Mon Mar 24 07:59:32 2025.
Error:
 Problem: package perl-4:5.32.1-481.el9.x86_64 from appstream requires perl-ExtUtils-CBuilder, but none of the providers can be installed
  - package perl-ExtUtils-CBuilder-1:0.280236-4.el9.noarch from appstream requires gcc, but none of the providers can be installed
  - conflicting requests
  - nothing provides libgomp = 11.5.0-2.el9 needed by gcc-11.5.0-2.el9.x86_64 from appstream
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

$ sudo dnf info libgomp
Last metadata expiration check: 3:43:17 ago on Mon Mar 24 07:59:32 2025.
Installed Packages
Name         : libgomp
Version      : 11.5.0
Release      : 5.el9_5
Architecture : x86_64
Size         : 412 k
Source       : gcc-11.5.0-5.el9_5.src.rpm
Repository   : @System
From repo    : baseos
Summary      : GCC OpenMP v4.5 shared support library
URL          : http://gcc.gnu.org
License      : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description  : This package contains GCC shared support library which is needed
             : for OpenMP v4.5 support.

Available Packages
Name         : libgomp
Version      : 11.5.0
Release      : 5.el9_5
Architecture : i686
Size         : 267 k
Source       : gcc-11.5.0-5.el9_5.src.rpm
Repository   : baseos
Summary      : GCC OpenMP v4.5 shared support library
URL          : http://gcc.gnu.org
License      : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description  : This package contains GCC shared support library which is needed
             : for OpenMP v4.5 support.

$ sudo dnf info gcc
Last metadata expiration check: 3:43:26 ago on Mon Mar 24 07:59:32 2025.
Available Packages
Name         : gcc
Version      : 11.5.0
Release      : 2.el9
Architecture : x86_64
Size         : 32 M
Source       : gcc-11.5.0-2.el9.src.rpm
Repository   : appstream
Summary      : Various compilers (C, C++, Objective-C, ...)
URL          : http://gcc.gnu.org
License      : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description  : The gcc package contains the GNU Compiler Collection version 11.
             : You'll need this package in order to compile C code.

$ sudo dnf info perl-ExtUtils-CBuilder
Last metadata expiration check: 3:43:39 ago on Mon Mar 24 07:59:32 2025.
Available Packages
Name         : perl-ExtUtils-CBuilder
Epoch        : 1
Version      : 0.280236
Release      : 4.el9
Architecture : noarch
Size         : 46 k
Source       : perl-ExtUtils-CBuilder-0.280236-4.el9.src.rpm
Repository   : appstream
Summary      : Compile and link C code for Perl modules
URL          : https://metacpan.org/release/ExtUtils-CBuilder
License      : GPL+ or Artistic
Description  : This module can build the C portions of Perl modules by invoking the
             : appropriate compilers and linkers in a cross-platform manner. It was motivated
             : by the Module::Build project, but may be useful for other purposes as well.

Try:

dnf clean all
dnf install perl

I have perl installed, and I also have libgomp-11.5.0-5.

1 Like

You have right. Thank you.

1 Like