First: On my Windows box at work, the CPAN shell installs modules (at least those without XS) lickety-split, no problemo. Likewise on my Linux box. But on my iBook (Darwin 10.3, Perl 5.8.4) -- which has become my primary development tool -- it takes forever, and does so every time I go to use it.
Tonight I was trying to install Spork. Tried to install it manually at first, then got caught by two prerequisites. So I figured I'd try the shell.
cpan> install Spork CPAN: Storable loaded ok Going to read /Users/jimk/.cpan/Metadata Database was generated on Mon, 07 Feb 2005 23:44:07 GMT CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
At this point, a pause of more than 5 minutes ensued. And this always happens.
LWP failed with code[400] message[FTP return code 000] Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Couldn't fetch 01mailrc.txt.gz from ftp.perl.org
More time passed. I went to the bathroom and shaved.
Issuing "/usr/bin/ftp -n" Trying 207.45.221.24... Connected to ftp.cpan.ddns.develooper.com. 220 mirror.teleglobe.net server ready
Only now did things speed up. Allow me to skip ahead to what I think is the next relevant part of the output.
200 Type set to I. local: 01mailrc.txt.gz remote: 01mailrc.txt.gz 500 EPSV not understood. 227 Entering Passive Mode (207,45,221,24,231,210). 150 Opening BINARY mode data connection for 01mailrc.txt.gz (100125 by +tes) 100% |*************************************| 97 KB 212.80 KB/s +00:00 ETA 226 Transfer complete. 100125 bytes received in 00:00 (189.75 KB/s) 221-Goodbye from mirror.teleglobe.net hosted in Newark, NJ 221 GOT /Users/jimk/.cpan/sources/authors/01mailrc.txt.gz Going to read /Users/jimk/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Issuing "/usr/bin/ftp -n" Trying 207.45.221.24... Connected to ftp.cpan.ddns.develooper.com. 220 mirror.teleglobe.net server ready
And skipping ahead again:
local: 02packages.details.txt.gz remote: 02packages.details.txt.gz 500 EPSV not understood. 227 Entering Passive Mode (207,45,221,24,202,125). 150 Opening BINARY mode data connection for 02packages.details.txt.gz +(369742 bytes) 100% |*************************************| 361 KB 385.93 KB/s +00:00 ETA 226 Transfer complete. 369742 bytes received in 00:00 (369.14 KB/s) 221-Goodbye from mirror.teleglobe.net hosted in Newark, NJ 221 GOT /Users/jimk/.cpan/sources/modules/02packages.details.txt.gz Going to read /Users/jimk/.cpan/sources/modules/02packages.details.txt +.gz Database was generated on Tue, 21 Jun 2005 05:57:41 GMT Issuing "/usr/bin/ftp -n" Trying 207.45.221.24... Connected to ftp.cpan.ddns.develooper.com. 220 mirror.teleglobe.net server ready
2. As I said at the outset, I was trying to install Spork. Once I finally made a connection, this was the output I got:
GOT /Users/jimk/.cpan/sources/modules/03modlist.data.gz Going to read /Users/jimk/.cpan/sources/modules/03modlist.data.gz Going to write /Users/jimk/.cpan/Metadata Running install for module Spork Running make for I/IN/INGY/Spork-0.20.tar.gz mkdir /Users/jimk/.cpan/sources/authors/id/I/IN: Permission denied at +/usr/local/lib/perl5/5.8.4/CPAN.pm line 2342
AFAICR, this was the first time I ever encountered this error. The relevant section of CPAN.pm reads as follows:
sub localize { .... my($aslocal_dir) = File::Basename::dirname($aslocal); File::Path::mkpath($aslocal_dir); # line 2342 $CPAN::Frontend->mywarn(qq{Warning: You are not allowed to write i +nto }. qq{directory "$aslocal_dir". I\'ll continue, but if you encounter problems, they may be due to insufficient permissions.\n}) unless -w $aslocal_dir;
Can anyone diagnose either problem? TIA.
Jim Keenan
In reply to Why is the CPAN shell not DWIMming? by jkeenan1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |