up vote 2 down vote favorite
1
share [g+] share [fb]

I can't seem to get CPAN installs working on a Solaris machine. Here is my current output.

~# perl -MCPAN -eshell
Terminal does not support AddHistory.

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

cpan> install Bundle::LWP                 
CPAN: Storable loaded ok
LWP not available
CPAN: Net::FTP loaded ok
Fetching with Net::FTP:
  ftp://ftp.dti.ad.jp/pub/lang/CPAN/authors/01mailrc.txt.gz
Couldn't fetch 01mailrc.txt.gz from ftp.dti.ad.jp
...
...

This output is repeated for every mirror. Any ideas why this doesn't work?

link|improve this question

75% accept rate
feedback

1 Answer

up vote 3 down vote accepted

There's a few possibilities of what it could be, but the most typical issue is that you're behind a firewall that requires you to use passive FTP. You can either look for an HTTP mirror, or try setting the environmental variable FTP_PASSIVE to a true value before running cpan.

link|improve this answer
export FTP_PASSIVE=1 – Casey Aug 13 '09 at 5:05
Yes, this was it. I ended up figuring this out before I saw your post. Hope this helps someone else. – Casey Aug 13 '09 at 5:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.