On Sat, Nov 7, 2009 at 7:57 AM, Shawn H Corey <shawnhco...@gmail.com> wrote:

> tom smith wrote:
> > I actually read something that said not to install Bundle::CPAN.  Then
> > sometime later I tried to install my first module, and in the fog of
> > trying everything possible to get cpan to install LPW::Simple, I saw
> > that message instructing me to update Bundle::CPAN, and I tried that.
> > But I never had cpan working before that.  cpan didn't work before
> > installing Bundle::CPAN and it doesn't work now.  That is why I want to
> > wipe every trace of cpan off my computer.
> >
> >
>
> Removing every trace of cpan from your machine may take a lot of effort.
>  Have you tried just replacing CPAN.pm from
> http://cpansearch.perl.org/src/ANDK/CPAN-1.9402/lib/CPAN.pm



I ran a find on the root directory to discover all the places where CPAN.pm
is located:

$ find / -type f -name CPAN.pm

/System/Library/Perl/5.8.6/CPAN.pm
/Users/me/.cpan/Bundle/CPAN.pm
/Users/me/my_tar_extractions/perl-5.10.1/lib/CPAN.pm
/usr/local/lib/perl5/5.10.1/CPAN.pm

Here is some more information:

$ which perl
/usr/local/bin/perl

$ perl -v
This is perl, v5.10.1 (*) built for darwin-2level
Copyright 1987-2009, Larry Wall
<snip>

$ which cpan
/usr/local/bin/cpan

$ cpan -v
/usr/local/bin/cpan script version 1.9, CPAN.pm version 1.9402

Then I ran a diff on the CPAN.pm from your link and the one at
/usr/local/lib/perl5/5.10.1/CPAN.pm,

$ diff --normal /Users/me/Documents/cpan_pm_co.txt
/usr/local/lib/perl5/5.10.1/CPAN.pm
$

So they are identical.

The next thing I would like to try is to get rid of Bundle::CPAN, which I
think is this:

/Users/me/.cpan/Bundle/CPAN.pm

Can I safely remove the whole .cpan directory?  Here's what's in it:

$ cd /Users/me/.cpan
$ ls
Bundle          Metadata        build           histfile        sources
$

If all else fails, you could try contacting the author at
> http://search.cpan.org/~andk/
>
>
Ok.  I think I'm pretty close.  But I kind of suspect they won't answer.

Reply via email to