FTP list fails on Mac OS 10.3

K

Koen Vervloesem

Hi,

The following example program of PickAxe 2 fails on Mac OS 10.3:

require 'net/ftp'
ftp = Net::FTP.new('ftp.netlab.co.jp')
ftp.login
ftp.list
ftp.close

/sw/lib/ruby/1.8/net/ftp.rb:276:in `initialize': Protocol not supported
- socket(2) (Errno::EPROTONOSUPPORT)
from /sw/lib/ruby/1.8/net/ftp.rb:276:in `open'
from /sw/lib/ruby/1.8/net/ftp.rb:276:in `makeport'
from /sw/lib/ruby/1.8/net/ftp.rb:310:in `transfercmd'
from /sw/lib/ruby/1.8/net/ftp.rb:402:in `retrlines'
from /sw/lib/ruby/1.8/net/ftp.rb:400:in `synchronize'
from /sw/lib/ruby/1.8/net/ftp.rb:415:in `retrlines'
from /sw/lib/ruby/1.8/net/ftp.rb:609:in `list'
from test.rb:4

Apparently the login works, but the list fails. This occurs also with
other ftp servers. What's happening here?

koan$ ruby -v
ruby 1.8.0 (2003-08-04) [powerpc-darwin]
koan$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.3.5
BuildVersion: 7M34

Koen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top