0
votes

I am using RVM and Homebrew on OS X Mavericks. JRuby 1.7.6 installs, but I cannot install any gems. I believe that JRuby comes with a semi-complete version of openssl. I have tried using http for gem sources, and even downloaded the gem for a local install. I see this same error regardless of gem locality or gem source.

$ jruby -S gem install bundler --trace
ERROR:  Loading command: install (LoadError)
    load error: openssl -- java.lang.IncompatibleClassChangeError: Implementing class
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

Others Rubies (1.8.7, 1.9.3, 2.0.0) are working without issue in RVM.

2

2 Answers

0
votes

You need to use the ruby first:

rvm use jruby-1.7.6

It will ensure all jruby gems are available for it.

0
votes

Is there a proxy blocking your access to the gemserver?

jruby -S gem source --add http://rubygems.org?