Coding

CPAN FTP problem on Mac OS 10.5

In case google brought you this way because you couldn’t get your darwinports perl installation to install packages with Net:FTP, here is a possible reason.

I was trying to sudo cpan / install XML:XML2JSON, and cpan would always get stuck with displaying “Fetching with Net::FTP:”… without actually downloading anything.

Here is the simple trick:

cd /opt/local/lib/perl5/5.X.X/Net
 libnetcfg -c

and then answer

Should all FTP connections be passive (y|n) ? [no]

with “yes”.

One thought on “CPAN FTP problem on Mac OS 10.5

  1. Hi

    It didn’t work for me, altrough I have managed to fix this problem by doing:

    export FTP_PASSIVE=1

    Hope it helps!

    Kamil

Leave a comment