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


in reply to When will CPAN.pm just work?

Using CPAN with FTP mirrors has been impossible for me. I don't know if it's a problem with my network configuration or what, but changing it to use only HTTP mirrors made it work fine, so I never bothered to solve the problem.

Replies are listed 'Best First'.
Re^2: When will CPAN.pm just work?
by superfrink (Curate) on Jan 24, 2005 at 05:44 UTC
    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

      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