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


in reply to CPAN problems on Mac OS X

I aways get these errors. I had them running Jaguar, and I have them running Panther. If you just let it run it should eventually succeed. Once it does, it will work for the rest of the session.

Replies are listed 'Best First'.
Re^2: CPAN problems on Mac OS X
by Anonymous Monk on Aug 12, 2004 at 14:53 UTC
    No, no, no, no. The problem is that Mac OS X uses passive FTP by default. You have to set an environmental variable -- FTP_PASSIVE=1 to let CPAN know how to FTP properly. If you're using bash, type "export FTP_PASSIVE=1" in your shell; tcsh, type "setenv FTP_PASSIVE 1".
      Thanks everyone for the replies. I tried setting the env variable FTP_PASSIVE=1 and cpan worked straight away. Perl Monks just saved me many hours.