Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about cpan

Status
Not open for further replies.

hcclnoodles

IS-IT--Management
Jun 3, 2004
123
GB
Hi there

I need to install some perl modules to get awstats working but when I try to launch cpan by using #perl -MCPAN -e 'shell' or #perl -eshell -MCPAN

i get



Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-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/perl5/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.


I am running RH9 and my perl version is v5.8.0

I also searched the entire disk for a file called cpan.pm, but nothing

does anybody know how I can get cpan itself installed so that i can start downloading perl modules


any help would be greatly appreciated
Gary
 
Gary,

I'm not really sure what you're trying to do, but I understand you're trying to get a module off CPAN. The best way to do this, to my knowledge, is to use ActiveState.


Using a shell, you can search and install CPAN modules. It's as simple as "install Spreadsheet-WriteExcel", or whatever module you'd like.

HTH,

Nick
 
thanks Nebbish

But unfortunately i am using Linux not windows, Basically when I try to get to a cpan> prompt by issuing the command

perl -MCPAN -e shell

I get the following error

Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-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/perl5/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.

thats it really, i need to know how i can fix this and get a cpan> pronpt

cheers


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top