Skip to content

Address family not supported by protocol - socket(2) - udp for latest Rubygems via RVM #803

Closed
rennhak opened this Issue Jan 31, 2014 · 3 comments

3 participants

@rennhak
rennhak commented Jan 31, 2014

On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:

Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp

(Please see gist below for entire stacktrace).

After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out

 rvm rubygems latest-2.0

fixes the issue. rvm rubygems head did not work.

Not quite sure what went wrong here and if this affects anyone who isn't running vserver.

Reference:

https://gist.github.com/anonymous/483c42ce132495271fc2

@drbrain
RubyGems member
drbrain commented Jan 31, 2014

Since resolv and/or socket are failing for you this is a Ruby bug, not a RubyGems bug.

@drbrain drbrain closed this Jan 31, 2014
@rennhak
rennhak commented Feb 4, 2014

Thanks for the clarification @drbrain, opened it here as @mpapis suggested.

https://bugs.ruby-lang.org/issues/9477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.