Perl 5.6.1 on Solaris 9, CPAN

djberg96 on 2002-07-18T13:07:29

After a brief stint trying to use the installed version of Perl on Solaris 9, I decided to just rebuild the thing because of whining about "optional language software" not being installed, etc.

On another note, I haven't been able to figure out how to disable Net::FTP and just use wget instead. It's a firewall issue of some sort, and I even found a couple of solutions, but neither seemed to work for me: perl -MCPAN -e '$INC{"Net/FTP.pm"} = "ignore"; sub Net::FTP::new { undef }; shell'

perl -MCPAN -e '$CPAN::Dontload{"Net::FTP"}=1; shell()'
At this point, I'm just going to rename FTP.pm to something else to force it to fail and use wget.


Firewall problem

darobin on 2002-07-18T14:34:17

I solved mine by telling Net::FTP to use a passive connection. That's done by editing Net/libnet.cfg, which is in you @INC somewhere. Switch ftp_int_passive to 0.

Re:Firewall problem

djberg96 on 2002-07-18T19:10:15

Actually, it was already set to 0. I tried messing around with some of the other options to no effect. What does wget do that's so special?

Anyway, as it is I just have to wait for all the lwp/ftp attempts to fail until it gets to wget. It takes a while, but it works. ;)

Re:Firewall problem

darobin on 2002-07-18T19:26:48

Are you 100% certain that you edited the right one? There could be several in your setup but only the first one in @INC will be picked up. If this doesn't help, well you have all my sympathy for CPAN.pm's slowness, it took me a while to get mine to work right here :)

Re:Firewall problem

djberg96 on 2002-07-19T16:52:12

Yes, I'm sure. There are actually 2 of them, and both are set to 0.

Back to the old fashioned way.