Trouble with gems installation in JRuby with RVM

I’m using Linux Mint.

I’ve already installed JRuby by RVM. When I check version of JRuby it
gives me correct message:

jruby 1.7.11 (1.9.3p392) 2014-02-24 86339bb on Java HotSpot™ Server
VM 1.8.0_05-b13 +indy [linux-i386]

But when I try to install some gems, for example:

gem install bundler

It gives me this message:

ERROR: While executing gem … (SocketError)
recv: name or service not known

double posted at

please provide more information (on stack-overflow) such as which gem
or
gem env and which jruby … thx

I’ve provided more information about gem env and which ruby and which
gem on stackoverflow.

Link?

i am facing the below error in the linux env.

gem install bundler-1.9.5
ERROR: While executing gem … (SocketError)
recv: name or service not known

i am just trying to install bundler

gem install bundler
ERROR: While executing gem … (SocketError)
recv: name or service not known

I’m surprised to see “bundler-1.9.5” as a gem name. Have you tried:

gem install bundler

Or, if you want a specific version of bundler, try the “–version”
option:

gem install bundler --version 1.9.5

  • Bruce