There 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:
Exception `SocketError’ at /usr/lib/ruby/1.8/drb/drb.rb:840 - getnameinfo: ai_family not supported
/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:
and compile the
ruby package again.
emerge ruby -pvt will show an output similar to the following output:
[ebuild R ] dev-lang/ruby-1.8.5 USE="ipv6 -cjk -debug -doc -examples -socks5 -threads -tk" 0 kB