http://qs321.pair.com?node_id=424504


in reply to Re: When will CPAN.pm just work?
in thread When will CPAN.pm just work?

I have had a similar problem. It's due to the somewhat broken File Transfer Protocol. If you set the environment variable FTP_PASSIVE to 1 and then run cpan things should work better for you. In the bash shell this looks like:
export FTP_PASSIVE=1 perl -MCPAN -e shell

Replies are listed 'Best First'.
Re^3: When will CPAN.pm just work?
by kelan (Deacon) on Jan 24, 2005 at 13:27 UTC

    In bash and zsh (and probably most other shells), you can also set the environment variable on a per-process basis like this:

    $ FTP_PASSIVE=1 perl -MCPAN -e shell