# Net::FTP broken on OS X (Tiger) / Ruby 1.8.2

**URL:** <https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971>\
**Category:** Ruby\
**Created:** [April 17, 2006, 11:18am UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971 "2006-04-17T11:18:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [April 17, 2006, 11:18am UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971/1 "2006-04-17T11:18:55Z")

</div>

I’m running Ruby 1.8.2 on my Tiger machine. I’m trying to use Net::FTP  
on the machine.

I can login to the server fine, but when I try a ftp.list IRB just  
hangs, then gives me something like this:

Net::FTPTempError: 425 Could not open data connection to port 54406:  
Connection timed out

If I run the same code on my Debian Linux box (also Ruby 1.8.2) it works  
flawlessly.

Ideas??? This is driving me nuts. I need to be able to dev on my mac…

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [April 17, 2006, 11:53am UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971/2 "2006-04-17T11:53:32Z")

</div>

Subimage wrote:

> I’m running Ruby 1.8.2 on my Tiger machine. I’m trying to use Net::FTP  
> on the machine.
> 
> I can login to the server fine, but when I try a ftp.list IRB just  
> hangs, then gives me something like this:
> 
> Net::FTPTempError: 425 Could not open data connection to port 54406:  
> Connection timed out
> 
> If I run the same code on my Debian Linux box (also Ruby 1.8.2) it works  
> flawlessly.
> 
> Ideas??? This is driving me nuts. I need to be able to dev on my mac…
> 
> Thanks in advance.

PS: I doubt it’s a network config error because I can use Net::HTTP just  
fine.

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [April 17, 2006, 11:53am UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971/3 "2006-04-17T11:53:39Z")

</div>

Ruby 1.8.2 that comes with Tiger is broken anyway. You should  
download and compile 1.8.4 yourself.

On 17-Apr-06, at 5:19 AM, Subimage wrote:

> works
> 
> !DSPAM:44435d84136742298113909!

–  
Jeremy T.  
removed\_email\_address@domain.invalid

“You cannot depend on your eyes, when your imagination is out of  
focus.” – Mark Twain

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [April 17, 2006, 12:14pm UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971/4 "2006-04-17T12:14:18Z")

</div>

Jeremy T. wrote:

> Ruby 1.8.2 that comes with Tiger is broken anyway. You should  
> download and compile 1.8.4 yourself.

I’m quite aware. I compiled it myself so Rails would work…Any other  
suggestions besides recompiling?

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [April 17, 2006, 12:24pm UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971/5 "2006-04-17T12:24:27Z")

</div>

> > > > > “S” == Subimage [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

S\> I’m quite aware. I compiled it myself so Rails would work…Any  
other  
S\> suggestions besides recompiling?

Try to use passive mode.

Guy Decoux

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [April 17, 2006, 7:18pm UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971/6 "2006-04-17T19:18:54Z")

</div>

ts wrote:

> > > > > > “S” == Subimage [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:
> 
> S\> I’m quite aware. I compiled it myself so Rails would work…Any  
> other  
> S\> suggestions besides recompiling?
> 
> Try to use passive mode.
> 
> Guy Decoux

I’ve done that. Like I said, I can run the same code on my Debian box  
and it’s broken. This is really infuriating…

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [April 18, 2006, 5:32am UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971/7 "2006-04-18T05:32:06Z")

</div>

FYI: The same code tested works on my XP box & my Debian box with Ruby  
1.8.2 (all behind the same router, so it’s not a firewall issue).

I guess recompiling the latest Ruby (1.8.4) is recommended on my OSX  
box? Will this break any of my installed gems like RMagick?
