LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-15-2008, 04:14 PM   #1
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Rep: Reputation: 33
Problems installing Perl Modules


I was trying to install a Perl Module today on my Etch box and when I try I get the following...

Quote:
LWP failed with code[500] message[Errno architecture (i486-linux-gnu-thread-multi-2.6.24.4) does not match executable architecture (i486-linux-gnu-thread-multi-2.6.18-6-k7) at /usr/local/share/perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/local/lib/perl/5.8.8/IO/Socket.pm line 17.
BEGIN failed--compilation aborted at /usr/local/lib/perl/5.8.8/IO/Socket.pm line 17.
Compilation failed in require at /usr/local/share/perl/5.8.8/Net/FTP.pm line 18.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/Net/FTP.pm line 18.
Compilation failed in require at /usr/local/share/perl/5.8.8/LWP/Protocol/ftp.pm line 21.
]
Fetching with Net::FTP:
ftp://ftp.dc.aleron.net/pub/CPAN/aut...1mailrc.txt.gz
Catching error: 'Can\'t locate object method "new" via package "Net::FTP" at /usr/local/share/perl/5.8.8/CPAN.pm line 3837.
' at /usr/local/share/perl/5.8.8/CPAN.pm line 281
CPAN::shell() called at -e line 1
Fetching with LWP:
ftp://ftp.dc.aleron.net/pub/CPAN/aut...1mailrc.txt.gz
LWP failed with code[500] message[Errno architecture (i486-linux-gnu-thread-multi-2.6.24.4) does not match executable architecture (i486-linux-gnu-thread-multi-2.6.18-6-k7) at /usr/local/share/perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/local/lib/perl/5.8.8/IO/Socket.pm line 17.
BEGIN failed--compilation aborted at /usr/local/lib/perl/5.8.8/IO/Socket.pm line 17.
Compilation failed in require at /usr/local/share/perl/5.8.8/Net/FTP.pm line 18.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/Net/FTP.pm line 18.
Compilation failed in require at /usr/local/share/perl/5.8.8/LWP/Protocol/ftp.pm line 21.
]
Fetching with Net::FTP:
ftp://ftp.dc.aleron.net/pub/CPAN/aut...1mailrc.txt.gz
Lockfile removed.
Can't locate object method "new" via package "Net::FTP" at /usr/local/share/perl/5.8.8/CPAN.pm line 3837.
Any one has any clues on how to fix this? TIA!
 
Old 12-15-2008, 05:04 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Have you tried Google ?

What command were you running? What module are you trying to install? Doesn't Debian already pre-package it for you? What kernel are you running?
 
Old 12-15-2008, 08:35 PM   #3
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
Command?

Code:
perl -MCPAN -e shell
Module?

Sys::HostIP

This shouldn't matter since I also tried others just to test and I had the same result.

Kernel?

2.6.18
 
Old 12-15-2008, 09:39 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Can't find it prepackaged (apt-cache search)

60 seconds into Google: http://www.mail-archive.com/fedora-p.../msg02299.html
 
Old 12-16-2008, 09:40 AM   #5
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
Thanks for the answer, but more importantly... Why did this happen? Are the Deb packages broken?
 
Old 12-17-2008, 08:07 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The Debian Etch package exists ( Net::Pcap-0.0.4 )
http://packages.debian.org/etch/i386...-perl/download
( http://packages.debian.org/etch/libnet-pcap-perl )
> > # 'apt-get install libnet-pcap-perl'

This is an earlier version, but '0.16' causes problems
not only in your system.

Comment : Debian has its own names for CPAN perl modules,
some names are rather different from the original, and not
always logical.

If you still have problems : The 'perl' you have in
/usr/local/lib seems very different from the default
Etch version in /usr/lib/perl/5.8.8/ , so an alternativ
solution is simply to use the default one.
....

Last edited by knudfl; 12-17-2008 at 09:00 AM.
 
Old 07-08-2009, 04:59 AM   #7
digitalpbk
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
Fix the issue

This occurs after you update your system.
Comment out certain lines on the ErrNo.pm to fix this issue temporarily.
http://digitalpbk.blogspot.com/2009/...hitecture.html has more details on the lines and codes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Perl Modules? waelaltaqi Linux - Software 2 12-26-2006 05:34 PM
Issues with installing Perl Modules MasterKin8T Linux - General 2 08-26-2006 12:48 PM
installing perl modules for Linbock is not working Hockeyfan Linux - Security 3 12-14-2005 12:17 PM
perl modules problems CPAN tardigrade Linux - Software 6 09-02-2004 12:29 PM
perl errors when installing modules jimi_j Programming 12 07-19-2004 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration