The cpan command failed to execute due to 3rd party libraries.

Solution Verified - Updated -

Issue

The cpan command failed with the following error.

XSLoader::load('Your::Module', $Your::Module::VERSION) at /usr/lib64/perl5/vendor_perl/XSLoader.pm line 25.
Compilation failed in require at /usr/share/perl5/vendor_perl/CPAN/FTP.pm line 6.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/CPAN/FTP.pm line 6.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/CPAN.pm line 28.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/CPAN.pm line 28.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/App/Cpan.pm line 290.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/App/Cpan.pm line 290.
Compilation failed in require at /usr/bin/cpan line 7.
BEGIN failed--compilation aborted at /usr/bin/cpan line 7.

Environment

Red Hat Enterprise Linux 8

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