Hi ,
M back,
while installing the cpan modules for perl , i was getting the above error.
so following below solution worked out for it.
Use the cpan command-line tool. This can also be invoked via the command
perl -MCPAN -e shell
In the shell, type
install <packagename>
where <packagename> is something like Time::HiRes or Tk.
If it hangs for ages whilst trying to download files over FTP, or get errors like
LWP failed with code[400] message[FTP return code 150]
then try setting the FTP_PASSIVE environment variable before running cpan:
export FTP_PASSIVE=1
August 25, 2008 at 10:17 pm |
ok thanks for this – it worked!
but why? I never used to have to set this. Is it a firewall issue?
April 7, 2009 at 8:10 pm |
it wirked, but I have the same question, never did it before, never got a problem… weird.
October 23, 2009 at 2:53 pm |
I was experiencing this error, even with it said in the cpan shell:
cpan[3]> o conf ftp_passive
ftp_passive [1]
Your fix still worked, thanks.