Using DRb on a Linux box

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?

Thanks!!

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!!
[…]
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?

Would it be a big hassle to try this with ruby compiled without
those options?
without …hack=INET with …hack=INET
druby://:0 No No
druby://0.0.0.0:0 ??? yes

It may help people later.

Thanks!!

    Hugh
···

On Thu, 22 Aug 2002, Dale Martenson wrote:

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!!

Does that mean that the same “getnameinfo” error occured after recompiling ruby?

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?

Thanks!!

Regards,

Michael

···

On Thu, Aug 22, 2002 at 11:25:17PM +0900, Dale Martenson wrote: