Link to home
Start Free TrialLog in
Avatar of Binero
BineroFlag for Sweden

asked on

Error when installing perl modules via CPAN

Something is wrong with Perl I guess, and when trying to install some Perl module via CPAN or trying to upgrade CPAN we'll get this error:

cpan> install CPAN::Bundle
Fetching with LWP:
  ftp://ftp.port80.se/pub/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[Errno architecture (i386-linux-thread-multi-2.6.9-67.0.7.elsmp) does not match executable architecture (i386-linux-thread-multi-2.6.9-78.0.1.elsmp) 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://ftp.port80.se/pub/CPAN/authors/01mailrc.txt.gz
Can't locate object method "new" via package "Net::FTP" at /usr/lib/perl5/5.8.8/CPAN.pm line 2250.

I have Google on this very much, but not getting any solution. I also found some bug report from Redhat, but that not help me either.

Why this is happening is because that spamd has stopped running on this server, and when trying to run spamd we just get this results:
# spamd
Can't locate object method "register_domain" via package "IO::Socket::INET" at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/IO/Socket/INET.pm line 22.
Compilation failed in require at /usr/bin/spamd line 44.
BEGIN failed--compilation aborted at /usr/bin/spamd line 79.

Any help is really appreciated.
ASKER CERTIFIED SOLUTION
Avatar of owensleftfoot
owensleftfoot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Binero

ASKER

Thank you, working just perfectly!