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”.

Advertisements

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s