CPAN? What CPAN?

Ovid on 2007-05-24T16:55:21

Having a new MacBook, I've immediately tried to get CPAN running on it. Regrettably, I get error messages like the following:

/opt/local/bin $ sudo cpan                 
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Bundle::CPAN
CPAN: Storable loaded ok
Going to read /Users/ovid/.cpan/Metadata
  Database was generated on Sun, 20 May 2007 00:54:28 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.mirror.ac.uk/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/01mailrc.txt.gz
LWP failed with code[404] message[File '01mailrc.txt.gz' not found]
Fetching with Net::FTP:
  ftp://ftp.mirror.ac.uk/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/01mailrc.txt.gz
Couldn't fetch 01mailrc.txt.gz from ftp.mirror.ac.uk
Fetching with LWP:
  ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/01mailrc.txt.gz
LWP failed with code[400] message[FTP return code 150]
Fetching with Net::FTP:
  ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/01mailrc.txt.gz
Couldn't fetch 01mailrc.txt.gz from ftp.mirrorservice.org
Issuing "/usr/bin/ftp -n"
Connected to ftp.mirror.ac.uk.

Google hasn't been much help. What's worse, the CPAN ChangeLog doesn't really seem to match up the CPAN version with the changes. Ugh.


UK Mirrors suck

Matts on 2007-05-24T17:06:51

Try flirble.org or whatever it's called.

install XCode

groditi on 2007-05-24T18:00:58

did you install XCode first? You are going to need to, my macbook had no 'make' until I did. Same thing for other similar command line tools. I highly suggest you take a look at one of the port systems and install some basics before you get to playing with the shell.

Re:install XCode

Ovid on 2007-05-24T19:35:28

I already have Darwin Ports and XCode installed. The problem went away after I manually upgraded CPAN.pm.

Check your built in firewall

Stevan on 2007-05-24T18:03:30

Ovid

Try turning off the built-in firewall, I have had issues with CPAN connecting while that was on.

- Stevan

See this thread @ perlmonks

florian on 2007-05-25T08:21:18

http://www.perlmonks.org/?node_id=382225

of course you need xcode too, but i guess you already installed it ;)