Advertisement

12.05.2005 at 12:27PM PST, ID: 21653842
[x]
Attachment Details

Can't locate CPAN.pm in @INC

Asked by dpaule in Perl Programming Language

Tags: locate

I always forget how to solve this problem, though it happens whever I upgrade Perl. Somehow I've broken the CPAN module.
Any help fixing would be much apprecoiated. BTW, locate CPAN.pm at the command prompt gets this:

# locate CPAN.pm
/usr/libdata/perl/5.00503/Bundle/CPAN.pm
/usr/libdata/perl/5.00503/CPAN.pm
/usr/local/.cpan/Bundle/CPAN.pm
/usr/local/lib/perl5/5.8.0/Bundle/CPAN.pm
/usr/local/lib/perl5/5.8.0/CPAN.pm
/usr/share/perl/man/cat3/CPAN-1.61/lib/Bundle/CPAN.pm
/usr/share/perl/man/cat3/CPAN-1.61/lib/CPAN.pm
/usr/src/contrib/perl5/lib/CPAN.pm


# perl -MCPAN -e shell
Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.0/mach /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.0/BSDPAN /usr/local/lib/perl5/5.8.0/mach /usr/local/lib/perl5/5.8.0 .).
BEGIN failed--compilation aborted.


# perl -e 'for (@INC) { printf "%d %s\n", $i++, $_}'
0 /usr/local/lib/perl5/site_perl/5.8.0/mach
1 /usr/local/lib/perl5/site_perl/5.8.0
2 /usr/local/lib/perl5/site_perl
3 /usr/local/lib/perl5/5.8.0/BSDPAN
4 /usr/local/lib/perl5/5.8.0/mach
5 /usr/local/lib/perl5/5.8.0


ThanksStart Free Trial
[+][-]12.05.2005 at 01:55PM PST, ID: 15423386

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 02:09PM PST, ID: 15423510

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 02:29PM PST, ID: 15423668

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 02:33PM PST, ID: 15423697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 02:52PM PST, ID: 15423824

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 03:36PM PST, ID: 15424123

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 04:25PM PST, ID: 15424426

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 05:03PM PST, ID: 15424595

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.05.2005 at 06:39PM PST, ID: 15424970

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: locate
Sign Up Now!
Solution Provided By: mjcoyne
Participating Experts: 2
Solution Grade: C
 
 
 
Loading Advertisement...
20080716-EE-VQP-32