When trying to use DRb on my Linux box (SuSE 7.3 running Ruby 1.6.7), I get
a SocketError indicating that getnameinfo: ai_family not supported.
According to the “Ruby Developer’s Guide”, page 337, the fix for this is to
recompile Ruby with ./configure --enable-ipv6 --with-lookup-order-hack=INET.
I tried that and it didn’t work!!
Looking at the DRbServer class, I noticed that if the uri parameter to the
initialize function is nil that the uri is set accordingly …
uri = 'drbuy://:0' unless uri
shouldn’t this be …
uri = 'druby://0.0.0.0:0' unless uri
It seemed to solve the problem on my system. What is the correct solution?
Why did recompiling Ruby not work?