rubygems - How do you update JRuby's gem command? -
how update version of gem jruby uses?
jruby uses gem (1.5.1) , upgrade 1.8.7. want have gems installed in ruby/gems
we run:
bin/jruby gem install rubygems-update fetching: rubygems-update-1.8.5.gem (100%) installed rubygems-update-1.8.5 1 gem installed bin/jruby gem install --system error: while executing gem ... (optionparser::invalidoption) invalid option: --system
(update not work either)
bin/jruby gem update --system updating rubygems updating rubygems 1.8.5 installing rubygems 1.8.5 error: while executing gem ... (errno::ebadf) bad file descriptor - bad file descriptor
how can install/update of gem (1.8.5) done?
configuration:
- using maven install jruby.
- jruby installed at: ~/.m2/repository/org/jruby/jruby-complete/1.6.3/jruby-complete-1.6.3.jar
- jruby-complete-1.6.3.jar not exploded.
- jruby-complete-1.6.3.jar has built "gem" (1.5.1) command it.
- command
bin/jruby
looks 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 $*
- environment variables:
(env)
gem_home=~/tools/ruby/gems gem_path=~/tools/ruby/gems
if can update_rubygems work, that's fine, aware may cause jruby-specific extensions no longer work (e.g., maven integration). ship rubygems jruby releases can ensure our extensions compatible version ship.
Comments
Post a Comment