dbae has asked for the wisdom of the Perl Monks concerning the following question:
I have never managed to fetch anything with Net::FTP (I am a 3 day old CPAN newbie). I'm trying to install via the cpan command ("sudo cpan" on MacOsX Panther). Here is the the first error message:
Here are the lines around 2260 in CPAN.pmCPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://ftp.perl.org/authors/01mailrc.txt.gz Couldn't cwd authors at /usr/local/lib/perl5/5.8.7/CPAN.pm line 2260
So, what I did was to insert an extra line into CPAN.pm, namely:======code starts============= unless ( $ftp->cwd($dir) ){ warn "Couldn't cwd $dir"; return; } =======code ends==============
print `pwd`;
The output was '/Users/dbae/.cpan', so obviously 'authors' was not to be found. The correct directory to cwd to is sources/authors
So I've tracked down the error quite a bit, but I have no idea how to fix the error.
Any advice?Another question: where should this question have been posted? I searched for Net::FTP on cpanforum, and got about 7 different groups, not one of which was recognizable by me.
Thanks a lotEdited by Chady -- fixed formatting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP is NEVER successful
by runrig (Abbot) on Jul 28, 2005 at 17:13 UTC | |
by dbae (Beadle) on Jul 28, 2005 at 21:14 UTC | |
by runrig (Abbot) on Jul 28, 2005 at 21:27 UTC | |
by dbae (Beadle) on Jul 28, 2005 at 21:39 UTC | |
|
Re: Net::FTP is NEVER successful
by socketdave (Curate) on Jul 28, 2005 at 16:33 UTC | |
by dbae (Beadle) on Jul 28, 2005 at 21:29 UTC | |
|
Re: Net::FTP is NEVER successful
by Angharad (Pilgrim) on Jul 28, 2005 at 16:43 UTC | |
by dbae (Beadle) on Jul 28, 2005 at 21:25 UTC |