A place for opinions and notes of a valibuk.

Ruby, DRb and Gentoo

Tagged with: — ondrej at 5:36 pm on Friday, October 27, 2006

Larry the CowThere can be a problem with the DRb system in Ruby on Gentoo and the IPv6 support.

If an application with DRb does not work and its error message is:

  1. Exception `SocketError’ at /usr/lib/ruby/1.8/drb/drb.rb:840 – getnameinfo: ai_family not supported
  2. /usr/lib/ruby/1.8/drb/drb.rb:840:in `getaddrinfo’: getnameinfo: ai_family not supported (SocketError)

then it is necessary to re-compile the ruby package with the ipv6 support, even you did not compile the IPv6 support into your kernel (or it is compiled as a module but it is not loaded).

Add to your /etc/portage/package.use file the following line:

  1. dev-lang/ruby ipv6

and compile the ruby package again.

emerge ruby -pvt will show an output similar to the following output:

  1. [ebuild   R   ] dev-lang/ruby-1.8.5  USE="ipv6 -cjk -debug -doc -examples -socks5 -threads -tk" 0 kB
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • DZone
  • Digg
  • Reddit
  • Technorati
  • Furl
  • NewsVine
  • Slashdot
  • Ma.gnolia
  • StumbleUpon

1 Comment »

Comment by Edward Ocampo-Gooding

October 26, 2008 @ 5:15 am

Thanks! I wouldn’t have figured this one out for a while.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Comment Preview

commercial break :)

Make an account on -- a really good hosting where you have your own virtual machine. I installed Gentoo there = I like it very much ;)