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 |
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. ;) |
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? |
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. :cool: Regards Simon |
Quote:
Since originally you wanted the "Module::Name" module, try then: Code:
install Module::Name |
All times are GMT -5. The time now is 03:12 PM. |