Version mismatch errors while loading perl modules

Solution Verified - Updated -

Issue

  • Socket object version XXX does not match bootstrap parameter XXX at /usr/lib64/perl5/DynaLoader.pm line 223
  • Getting below errors while loading perl module
[user@host ~]$ perl -e 'use Net::FTP'
Socket object version 1.82 does not match bootstrap parameter 2.021 at /usr/lib64/perl5/DynaLoader.pm line 223.
Compilation failed in require at /usr/lib64/perl5/IO/Socket.pm line 12.
BEGIN failed--compilation aborted at /usr/lib64/perl5/IO/Socket.pm line 12.
Compilation failed in require at /usr/local/share/perl5/Net/FTP.pm line 22.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Net/FTP.pm line 22.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Environment

  • Red Hat Enterprise Linux Server release 6
  • CPAN
  • perl

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content