Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Changing cpan-commands download behavior

by neniro (Priest)
on Jul 16, 2005 at 11:15 UTC ( #475428=perlquestion: print w/replies, xml ) Need Help??

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 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 tries things is hard-coded into the hosteasy() and hosthard() functions. It's not something that's configurable.

    brian d foy <>

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://475428]
Approved by GrandFather
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2023-01-29 19:52 GMT
Find Nodes?
    Voting Booth?

    No recent polls found