Gem::LoadError: can't activate jruby-openssl-0.9.5-java, already activated jruby-openssl-0.9.7-java

460 views Asked by At

I am getting below error while doing bundle install --path vendor/cache:

Gem::LoadError: can't activate jruby-openssl-0.9.5-java, already activated jruby-openssl-0.9.7-java

I am using jruby 1.7.16. I tried deleting vendor, deleting Gemfile.lock but nothing is fixing this issue.

Can someone please suggest what can fix this issue.

Thanks in advance.

3

There are 3 answers

0
IAmGroot On BEST ANSWER

I ended up uninstalling 0.9.7 version.

gem uninstall -i /usr/local/rvm/gems/jruby-1.7.16@global jruby-openssl
1
eurobrew On

This is a conflict with the default gem installed with Mac OSX, bundle install fails with Gem::LoadError: can't activate jruby-openssl-0.9.7-java, already activated jruby-openssl-0.9.5-java. All you need to do is update your system gem by running:

gem install jruby-openssl

0
kares On

it's a default gem ... they behave slightly differently than normal ones

esp. when using gem install/uninstall

a bundle exec or jruby -G -S ... would have likely worked around this