Trouble with gems installation in JRuby with RVM


#1

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


#2

double posted at
http://stackoverflow.com/questions/23708652/trouble-with-gems-installation-in-jruby-with-rvm

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


#3

I’ve provided more information about gem env and which ruby and which
gem on stackoverflow.
https://stackoverflow.com/questions/23708652/trouble-with-gems-installation-in-jruby-with-rvm


#4

Link?


#5

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


#6

i am just trying to install bundler

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


#7

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