For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2005 > CPAN









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CPAN
Octavian Rasnita

2005-03-27, 3:55 pm

Hi,

Does anyone know why CPAN shell cannot use the FTP addresses I defined?

I saw that it waits very much time for each one, then tells that that
address was not accessible and passes to the next one, waits a lot again,
and so on.

It works fine with http addresses however.

Thanks.

Teddy

Offer Kaye

2005-03-27, 3:55 pm

On Sun, 27 Mar 2005 14:52:01 +0300, Octavian Rasnita wrote:
> Hi,
>
> Does anyone know why CPAN shell cannot use the FTP addresses I defined?
>
> I saw that it waits very much time for each one, then tells that that
> address was not accessible and passes to the next one, waits a lot again,
> and so on.
>
> It works fine with http addresses however.
>
> Thanks.
>
> Teddy
>


Possibly you are being blocked by a firewall. Try setting the
environment variable FTP_PASSIVE, e.g.:
In (t)c-shell:
setenv FTP_PASSIVE 1
In (ba)sh:
export FTP_PASSIVE=1

If this doesn't work, make sure that in CPAN/Config.pm, the various
ftp program options are blanks:
'ftp' => q[],
'ftp_proxy' => q[],
'ncftp' => q[],
'ncftpget' => q[],

and that you have LWP installed, so that CPAN uses LWP::UserAgent
instead. Now your ftp addresses should work fine.

--
Offer Kaye
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com