wayneeseguin/rvm — Issue #653: `gem: --local' in ~/.gemrc breaks rvm install jruby
Author: MarkDBlackwell
Created: 2011-12-20 22:00:48+00:00
State: open

A statement, `gem: --local' in my ~/.gemrc broke, `rvm install jruby` in stage, `Copying across included gems,' with an error saying, `ERROR: Could not find a valid gem 'jruby-launcher' (>=0) in any repository'.

It was puzzling to this newby to RVM and JRuby. However, installation worked when I figured out to do:

rvm install jruby-1.6.5
gem install rake jruby-launcher --remote
rvm install jruby-1.6.5

Just for robustness, to cover such ~/.gemrc (mis-)configurations, perhaps it would be good to add, `--remote' to the install command part of the RVM script, wherever it calls the gem command. I presume that will override the user's default configuration.

(Yes, I've since removed that configuration from my ~/.gemrc.) Debian 5.0.9 (lenny), RVM 1.10.0, JRuby 1.6.5.