How do we update the gem version that JRuby uses?
JRuby uses gem (1.5.1), and we would like to update it to 1.8.7. We want the stones to be installed in Ruby / gems
We run:
bin/jruby gem install rubygems-update Fetching: rubygems-update-1.8.5.gem (100%) Successfully installed rubygems-update-1.8.5 1 gem installed bin/jruby gem install
(update also does not work)
bin/jruby gem update --system Updating RubyGems Updating RubyGems to 1.8.5 Installing RubyGems 1.8.5 ERROR: While executing gem ... (Errno::EBADF) Bad file descriptor - Bad file descriptor
How can I install / upgrade gem (1.8.5)?
Configuration:
- using Maven to install JRuby.
- JRuby is installed at: ~ / .m2 / repository / org / JRuby / JRuby-full / 1.6.3 / JRuby-full-1.6.3.jar
- jruby-complete-1.6.3.jar is NOT blown up.
- jruby-complete-1.6.3.jar built the gem command in it (1.5.1).
- The
bin/jruby looks like this:
(bin / JRuby)
export jruby_build=1.6.3 export GEM_HOME= ~/tools/ruby/gems java -jar ~/.m2/repository/org/jruby/jruby-complete/${jruby_build}/jruby-complete-${jruby_build}.jar -S $*
(okr)
GEM_HOME=~/tools/ruby/gems GEM_PATH=~/tools/ruby/gems
source share