On Sun, Nov 8, 2009 at 12:39 AM, tom smith <climbingpartn...@gmail.com>wrote:

>
> 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
> $
>
>
I decide to try moving the whole /Users/me/.cpan directory somewhere else,
and then try installing a module.  This is what I got:



Password:
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.

cpan[1]> install FileUtils::More
CPAN: Storable loaded ok (v2.20)
CPAN: Time::HiRes loaded ok (v1.9719)
  LWP not available

Trying with "/usr/local/bin/curl -L -f -s -S --netrc-optional" to get
    "
http://mirrors.cpan.org/showmirror.cgi?name=xmission.com/authors/01mailrc.txt.gz
"
CPAN: Compress::Zlib loaded ok (v2.02)
Error while trying to rename
'/Users/me/.cpan/sources/authors/01mailrc.txt.gz.tmp720' to
'/Users/me/.cpan/sources/authors/01mailrc.txt.gz': No such file or directory
 LWP not available

Trying with "/usr/local/bin/curl -L -f -s -S --netrc-optional" to get
    "
http://mirrors.cpan.org/showmirror.cgi?name=xmission.com/authors/01mailrc.txt.gz
"
Error while trying to rename
'/Users/me/.cpan/sources/authors/01mailrc.txt.gz.tmp720' to
'/Users/me/.cpan/sources/authors/01mailrc.txt.gz': No such file or
directoryTerminal does not support GetHistory.
Lockfile removed.

$

Then I tried to move the .cpan directory back to /Users/me, but I was
informed that directory already exists!  What the?


~/.cpan$ ls -al
total 0
drwxr-xr-x    3 root    me   102 Nov  8 01:48 .
drwxr-xr-x    42 me     me  1428 Nov  8 16:43 ..
drwxr-xr-x    4 root    me   136 Nov  8 01:11 sources

I notice that it only has one subdirectory now: sources, instead of all the
ones it had before:

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

Reply via email to