Unable to run cpan command -- loadable library and perl binaries are mismatched

gvard

Well-Known Member
PartnerNOC
Dec 22, 2003
213
10
168
Athens/GREECE
cPanel Access Level
DataCenter Provider
Hello,

We run CloudLinux 8.5 and we face an issue where we wanted to install a perl module via cpan. I tried via WHM and it failed, I tried running the cpanel command via SSH and I get the following output:

Bash:
[[email protected] ~]# cpan
HiRes.c: loadable library and perl binaries are mismatched (got handshake key 0xde00080, needed 0xcd00080)
I contacted cPanel regarding this and they narrowed the problem down to perl-Time-HiRes module:

Bash:
[[email protected] ~]# rpm -qV perl-Time-HiRes
Unsatisfied dependencies for perl-Time-HiRes-4:1.9758-2.el8.x86_64:
        libperl.so.5.26()(64bit) is needed by (installed) perl-Time-HiRes-4:1.9758-2.el8.x86_64
        perl(:MODULE_COMPAT_5.26.3) is needed by (installed) perl-Time-HiRes-4:1.9758-2.el8.x86_64
......G..  a /usr/lib/.build-id/0e
......G..  a /usr/lib/.build-id/0e/79691bdc3f47201e76d73c9e5d9e7f7703dc14
The told me that the problem may be solved by removing the module, but they redirected me to CloudLinux for verification. CloudLinux first told me to " Rebuild all libraries by removing the perl files and reinstalling them again. " but after I asked for verification in case something bad happens, they wrote:

Unfortunately, perl packages have many crucial system dependencies which means that manually replacing the perl package could be risky.
The safest route at this point would be the reinstallation of CloudLinux components by executing the conversion script.
Running the conversion script would mean that CageFS and PHP Selector would be disabled for an amount of time, also PHP settings from PHP Selector configured by the users may be lost. Is there a way to remove this perl package which might solve this issue, without having to reinstall CloudLinux?
 

andrew.n

Well-Known Member
Jun 9, 2020
875
325
63
EU
cPanel Access Level
Root Administrator
do you have any perl references in .bash_profile or .bashrc? I think reinstalling the packages is the way to go :(
 

andrew.n

Well-Known Member
Jun 9, 2020
875
325
63
EU
cPanel Access Level
Root Administrator
well it's really hard to advise without having a closer look. You can proceed with full backups beforehand or hire a cPanel certified sys admin from Resources to assist you with this.
 
  • Like
Reactions: cPanelAnthony