If you’re seeing this error:
/opt/local/lib/ruby/1.8/drb/drb.rb:865:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
from /opt/local/lib/ruby/1.8/drb/drb.rb:865:in `open'
from /opt/local/lib/ruby/1.8/drb/drb.rb:865:in `open_server'
because you’ve just upgraded OSX, the issue is in the actual Socket call:
Socket.getaddrinfo(Socket.gethostname, 0, Socket::AF_INET, Socket::SOCK_STREAM, nil, Socket::AI_CANONNAME)
This is the origin of the error. If you change the param at 1:
Socket.getaddrinfo(Socket.gethostname, nil, Socket::AF_INET, Socket::SOCK_STREAM, nil, Socket::AI_CANONNAME)
OSX goes on, happy as can be. The process of dealing with OS upgrades is pretty interesting and so is the discussion around it, from a community/coding standpoint. You can check out this thread here.
http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/ccf6510ee91c21ac?hl=en
Recent Comments