LinuxQuestions.org
Visit Jeremy's Blog.
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 09-28-2004, 09:43 AM   #1
hcclnoodles
Member
 
Registered: Apr 2003
Posts: 50

Rep: Reputation: 15
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
 
Old 09-28-2004, 10:54 AM   #2
hcclnoodles
Member
 
Registered: Apr 2003
Posts: 50

Original Poster
Rep: Reputation: 15
sorry but can anybody help me on this, all i want to do is get a cpan> prompt

cheers
 
Old 09-28-2004, 03:08 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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

Last edited by foo_bar_foo; 09-28-2004 at 03:15 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do I install cpan? abefroman Linux - Software 1 11-16-2005 11:28 PM
CPAN Problem mesh2005 Linux - Networking 7 10-25-2005 08:36 AM
How to Reconfigure CPAN amer_58 Linux - Newbie 1 04-19-2005 05:47 AM
perl CPAN LinFreak! Slackware 3 01-03-2004 08:16 AM
CPAN Error fritzlero Programming 1 11-20-2000 08:16 AM

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

All times are GMT -5. The time now is 01:41 AM.

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