Forum: JRuby Trouble with gems installation in JRuby with RVM

2c1837012113ed8ae9b88b40ed384db1?d=identicon&s=25 Milos Dolobac (msdc)
on 2014-05-17 08:57
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(TM) 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
Caa2df9372ffa0a9e95b2bab1e8fea34?d=identicon&s=25 Karol Bucek (Guest)
on 2014-05-17 14:50
(Received via mailing list)
double posted at
http://stackoverflow.com/questions/23708652/troubl...

please provide more information (on stack-overflow) such as `which gem`
or
`gem env` and `which jruby` ... thx
2c1837012113ed8ae9b88b40ed384db1?d=identicon&s=25 Milos Dolobac (msdc)
on 2014-05-17 18:02
I've provided more information about gem env and which ruby and which
gem on stackoverflow.
https://stackoverflow.com/questions/23708652/troub...
486ca04f06d968004643ce5b47376ded?d=identicon&s=25 Keith B. (keith_b)
on 2014-05-17 18:34
(Received via mailing list)
Link?
371f037e847a1e1be0a92ce3f5c7e192?d=identicon&s=25 Chandra Sekhar (chandrarubyforum)
on 2015-05-14 20:59
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
147ef000d3a4fb7bd34d2fef34d55fef?d=identicon&s=25 Bruce Adams (Guest)
on 2015-05-14 21:11
(Received via mailing list)
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
371f037e847a1e1be0a92ce3f5c7e192?d=identicon&s=25 Chandra Sekhar (chandrarubyforum)
on 2015-05-14 22:30
i am just trying to install bundler

gem install bundler
ERROR:  While executing gem ... (SocketError)
    recv: name or service not known
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.