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

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.

···

--
Posted via http://www.ruby-forum.com/.

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:

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.

--
Posted via http://www.ruby-forum.com/.

!DSPAM:44435d84136742298113909!

--
Jeremy Tregunna
jtregunna@blurgle.ca

"You cannot depend on your eyes, when your imagination is out of focus." -- Mark Twain

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.

···

--
Posted via http://www.ruby-forum.com/.

Jeremy Tregunna 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?

···

--
Posted via http://www.ruby-forum.com/.

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

Try to use passive mode.

Guy Decoux

ts wrote:

> I'm quite aware. I compiled it myself so Rails would work....Any
other
> 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......

···

--
Posted via http://www.ruby-forum.com/.

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?

···

--
Posted via http://www.ruby-forum.com/.