neniro has asked for the wisdom of the Perl Monks concerning the following question:

I'm in trouble using the cpan command on a mac behind a router. It tries LWP, Net::FTP, wget and at last 'ftp -n'. 'ftp -n' works fine so I would like to set it as default, but I don't know how. I've inspected Config.pm but it seems to be not the place to change this order?
  • Comment on Changing cpan-commands download behavior

Replies are listed 'Best First'.
Re: Changing cpan-commands download behavior
by borisz (Canon) on Jul 16, 2005 at 11:37 UTC
      Thank you. I tried 'env FTP_PASSIVE=1' but it doesn't solve my problem. Maybe I should install a proxy it could use?!
Re: Changing cpan-commands download behavior
by betterworld (Curate) on Jul 16, 2005 at 11:25 UTC
    Well, you could get rid of wget by not configuring a path for it, but I don't know how to stop it trying LWP and Net::FTP. But what is the problem with those, actually? If ftp -n works, so should at least Net::FTP. Maybe you could get it to work with the FTP_PASSIVE=1 environment setting.
Re: Changing cpan-commands download behavior
by brian_d_foy (Abbot) on Jul 16, 2005 at 18:03 UTC

    The order that CPAN.pm tries things is hard-coded into the hosteasy() and hosthard() functions. It's not something that's configurable.

    --
    brian d foy <brian@stonehenge.com>