LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cpan.pm question (https://www.linuxquestions.org/questions/linux-software-2/cpan-pm-question-236205/)

hcclnoodles 09-28-2004 10:43 AM

cpan.pm question
 
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

hcclnoodles 09-28-2004 11:54 AM

sorry but can anybody help me on this, all i want to do is get a cpan> prompt

cheers

foo_bar_foo 09-28-2004 04:08 PM

you can get the source for cpan from any cpan mirror like
ftp://cpan.chebucto.ns.ca/pub/CPAN/modules/by-module/
perl Makefile.PL, make, make test, make install

it may help to have
Digest::MD5
HTML::Parser
MIME::Base64
URI
libnet
libwww

before you install cpan

as you know perl modules can be a bit tricky

i use this package all the time to help see whats going on with perl modules
http://patriot.net/~gary/pmtools-1.00.tar.gz


All times are GMT -5. The time now is 07:10 AM.