------------------------------------------------
On Wed, 17 Sep 2003 08:16:22 -0700, John Birkhead <[EMAIL PROTECTED]> wrote:

> Hi,
>       I tried this (unshift) and I still get the problem - see the
> cut/paste below. However, commiting changes works well.
> 
> 
> ibm600x:~ # perl -MCPAN -e shell
> 
> cpan shell -- CPAN exploration and modules installation (v1.61)
> ReadLine support enabled
> 
> cpan> 
> cpan> 
> cpan> o conf urlist
>     urlist            
>         ftp://cpan.nas.nasa.gov/pub/perl/CPAN
> Type 'o conf' to view configuration edit options
> 
> 
> cpan> install Net::IMAP
> CPAN: Storable loaded ok
> Going to read /root/.cpan/Metadata
> Warning: Found only 0 objects in /root/.cpan/Metadata
> CPAN: LWP::UserAgent loaded ok
> Fetching with LWP:
>   ftp://ftp.perl.org/authors/01mailrc.txt.gz
> LWP failed with code[404] message[Can't chdir to authors]
> Fetching with Net::FTP:
>   ftp://ftp.perl.org/authors/01mailrc.txt.gz
> Couldn't cwd authors at /usr/lib/perl5/5.8.0/CPAN.pm line 2182.

Naturally what's weird is that a) CPAN isn't finding your list of configured sites, 
and b) the apparently hardcoded default is incorrect. Afraid I don't have many ideas 
about the first other than trying to remove the MyConfig.pm and re-configuring CPAN 
(not that I think this will help much).  As for the second, that seems like a 
corrupted CPAN.pm to me, since I have the following hardcoded on both a 5.8.0 RH9 box 
and a 5.6.1 Solaris 8 box:

$CPAN::Defaultsite ||= "ftp://ftp.perl.org/pub/CPAN";;

But your CPAN seems to be trying to hit the site without the 'pub/CPAN' which is why 
you are getting the not found errors.

You might try hacking the CPAN you have installed to see what the 'Defaultsite' is set 
to, and/or downloading and reinstalling CPAN itself.

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to