in reply to CPAN times out on "01mailrc.txt.gz", every time, Mac OS X Darwin

Pick an HTTP mirror or turn on 'passive' FTP (by setting the FTP_PASSIVE environment variables to 1, for example).

Yes, I agree that it is quite unfortunately that CPAN.pm comes "out of the box" in a configuration that makes it time out mysterious for several minutes and then do nothing useful (if run on a machine that is behind a firewall, which should be all machines but is surely a very large fraction of machines).

- tye        

  • Comment on Re: CPAN times out on "01mailrc.txt.gz", every time, Mac OS X Darwin (passive)

Replies are listed 'Best First'.
Re^2: CPAN times out on "01mailrc.txt.gz", every time, Mac OS X Darwin (passive)
by brycen (Monk) on Dec 13, 2005 at 04:44 UTC
    Thanks, that was the pointer I needed to find http://sial.org/howto/perl/life-with-cpan/, and this worked:
    env FTP_PASSIVE=1 cpan -i Net::FTP
    I never would have guessed this myself, since the actual module installation was fine, only the mailrc failed to load (and cpan never really seemed to care). How do I set the mirror? I don't find a Config.pm in my ~/.cpan.
      This worked for me as well. I was getting the same on the 01mailrc.txt.gz hanging everytime i tried to install modules. I couldn't figure out why. Again, thanks. BTW i my OS is FreeBSD 5.4

      "Es gibt mehr zu Leben als Bücher, kennen Sie. Aber nicht viel mehr " -(Der Smiths)
      The file you're looking for is called ~/.cpan/CPAN/MyConfig.pm
      --
      @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/
        01mailrc.txt.gz - how to get this file

        The file you're looking for is called ~/.cpan/CPAN/MyConfig.pm

        what - you saywhat: i need this file? but how ?