'cpan shell' gives the error: 'Errno architecture does not match executable architecture'
Issue
The 'cpan shell' command gives the following error:
[root@netmon01 5.8.8]# cpan shell
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Mon, 10 Aug 2009 11:27:00 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://carroll.cac.psu.edu/pub/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[Errno architecture (i386-linux-thread-multi-2.6.9-34.elsmp) does not match executable architecture (i386-linux-thread-multi-2.6.18-128.1.10.el5) at /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/IO/Socket.pm line 17.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/IO/Socket.pm line 17.
Compilation failed in require at /usr/lib/perl5/5.8.8/Net/FTP.pm line 18.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/Net/FTP.pm line 18.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol/ftp.pm line 21.
]
Fetching with Net::FTP:
ftp://carroll.cac.psu.edu/pub/CPAN/authors/01mailrc.txt.gz
Can't locate object method
Environment
- Red Hat Enterprise Linux 5
- CPAN
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.