# DRb Problems with Mac OS X 10.5.3

**URL:** <https://www.ruby-forum.com/t/drb-problems-with-mac-os-x-10-5-3/138922>\
**Category:** Ruby\
**Created:** [May 29, 2008, 12:18am UTC](https://www.ruby-forum.com/t/drb-problems-with-mac-os-x-10-5-3/138922 "2008-05-29T00:18:29Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![kschrader](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/919ad9/32.png) [@kschrader](https://www.ruby-forum.com/u/kschrader)\
**Post date:** [September 19, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/drb-problems-with-mac-os-x-10-5-3/138922/21 "2009-09-19T19:38:56Z")

</div>

Looks like this has re-surfaced in 10.6 (Snow Leopard). Fresh install  
and I can’t start drb with localhost. Using the hack above fixes the  
problem for now, but just though I’d mention it.

---

<div class="post-metadata">

**Author:** ![kschrader](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/919ad9/32.png) [@kschrader](https://www.ruby-forum.com/u/kschrader)\
**Post date:** [June 24, 2008, 3:25am UTC](https://www.ruby-forum.com/t/drb-problems-with-mac-os-x-10-5-3/138922/22 "2008-06-24T03:25:18Z")

</div>

Andy Keep wrote:

> I’ve not done too much Ruby socket programming, but it seems to be that  
> it doesn’t like 0 as a service number, because it is interpreting it as  
> the real service 0, instead of the empty service… if you use nil  
> instead it works fine… you might be able to patch dRb to use that as a  
> work around.

Looks to me like this might not be the reason, as I was able to get it  
to work by using 127.0.0.1 instead of localhost:

> > require ‘drb’  
> > =\> true  
> > DRb.start\_service(‘druby://localhost:0’)  
> > SocketError: getaddrinfo: nodename nor servname provided, or not known  
> > …  
> > DRb.start\_service(‘druby://127.0.0.1:0’)  
> > =\> #\<DRb::DRbServer:0x383a24 @grp=#ThreadGroup:0x3839e8,  
> > …

[Previous page](https://www.ruby-forum.com/t/drb-problems-with-mac-os-x-10-5-3/138922.md?page=1)
