LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 02-07-2007, 06:50 PM   #1
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Rep: Reputation: 15
perl errors


Hello -

I am running DSL from a usb pen drive.
I downloaded a program and tried to run it and got the following error:

Can't locate Sys::Hostname in @INC (@INC contains: /ramdisk/home/dsl/ /lib /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl .) at /usr/lib/perl/5.8.0/Sys/Hostname.pm line 27
Can't locate Term/ReadLine.pm in @INC (@INC contains: /ramdisk/home/dsl/lib /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl .) at /ramdisk/home/dsl/lib/Pex/PsuedoShell.pm line 18.
BEGIN failed--compilation aborted at /ramdisk/home/dsl/lib/Pex/PsuedoShell.pm line 18.
Compilation failed in require at line 29.
BEGIN failed--compilation aborted at line 29.

I read some on perl and modules and tried downloading Hostname.pm from CPAN, putting it several places: /usr/local/lib/site_perl/, /usr/local/lib/site_perl/Sys/, /usr/usr/lib/perl/5.8.0, /lib/perl/5.8.0/Sys/ and my home directory. That changed the error slightly:

Can't locate loadable object for module Sys::Hostname in @INC
etc

I'm somewhat familar with ubuntu but never had a problem like this before. Am I on the right track trying to download these .pms? Why are there so many? Does DSL work work with Perl in a different way and I am looking in the wrong place?

Thanks for any light you migh be able to shed on the situation
 
Old 02-10-2007, 10:17 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
The best way to install perl modules is by issuing the command "perl -MCPAN -e shell" as root. Then you can type, eg. "install Sys::Hostname" and it should download, compile and install the modules you need.

Brian
 
1 members found this post helpful.
  


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
Perl errors Brennan Linux From Scratch 5 09-29-2005 12:59 PM
Perl errors with Webmin evanw Linux - Software 2 01-18-2005 02:20 PM
perl errors when installing modules jimi_j Programming 12 07-19-2004 11:16 PM
Spamassassin Perl errors shimmyt Slackware 2 06-29-2004 07:49 AM
perl errors when installin gaim tk7967 Linux - Software 1 02-13-2004 12:15 AM

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

All times are GMT -5. The time now is 12:27 PM.

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