LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2004, 01:25 PM   #1
jmg1894
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Rep: Reputation: 0
perl modules problem


I am getting the following error message in perl. I think it's a problem with a module but I do not know which one or where to find it. Can anyone help!!

[root@jonesivr Mail-Sender-0.8.06]# perl -MModule::Name
Can't locate Module/Name.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-li
nux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-
thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/pe
rl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /
usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/
perl5/5.8.0 .).
BEGIN failed--compilation aborted.

Thanks
 
Old 07-20-2004, 02:24 PM   #2
fibbi
Member
 
Registered: Sep 2003
Distribution: gentoo
Posts: 101

Rep: Reputation: 16
yep, you need the Name.pm module. be root, and type the comand "cpan" (stands for comprehensive perl archive network). It should lead you through some configuration options to help you set up your mirrors and whatnot. When you're at the cpan command prompt type "install Name". It should automatically do it for you.


Just to note, slashes are translated into :: as far as perl modules are concerned. So if for some reason it actually is located in a "Module" folder, you'd type "install Module::Name".

Enjoy perl. It R0x0rs.
 
Old 07-20-2004, 02:49 PM   #3
jmg1894
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Original Poster
Rep: Reputation: 0
This is what I get now when I try to install the name module


cpan> install Name
Warning: Cannot install Name, don't know what it is.
Try the command

i /Name/

to find objects with matching identifiers.


What am I missing or doing wrong?
 
Old 07-20-2004, 06:15 PM   #4
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
Are you perhaps trying to actually use a module called Module::Name? As far as I know, that kind of thing doesn't exist. You might have read an example somewhere that presumes that you replace "Module::Name" with some (or any) modules real name. The same goes if you see somewhere a mention about Foo::Bar or similar phony names.

Modules are typically taken into use in the code itself (with a "use" statement), not on the command line.

Perl on-line documentation:
http://www.perldoc.com/

CPAN on the Web:
http://www.cpan.org/

I agree with fibbi, Perl is awesome, düde.

Regards
Simon
 
Old 07-21-2004, 12:03 AM   #5
afm
LQ Newbie
 
Registered: Jul 2004
Posts: 16

Rep: Reputation: 2
Quote:
Originally posted by jmg1894
This is what I get now when I try to install the name module


cpan> install Name
Warning: Cannot install Name, don't know what it is.
Try the command

i /Name/

to find objects with matching identifiers.


What am I missing or doing wrong?
That's because there's no module called "Name" on the CPAN archives.

Since originally you wanted the "Module::Name" module, try then:

Code:
install Module::Name
If it still barks, the maybe Module::Name doesn't not exist in the world.
 
  


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 modules installation problem on fc4 kartheekpn Linux - Software 0 08-09-2005 02:44 AM
perl modules Berhanie *BSD 2 07-05-2005 12:28 PM
um.... perl modules? ruwach Programming 2 02-27-2005 10:15 AM
perl modules amer_58 Linux - Newbie 3 02-20-2005 05:04 AM
perl modules mairul Linux - Newbie 13 03-08-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:09 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