Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error loading RubyGems plugin ,openssl.bundle (LoadError)

Tags:

ruby

rubygems

I am new to ruby. When I type any thing related to gem, error below will happen. why causes it and how to solve the problem? Thanks!

Error loading RubyGems plugin "/Users/chiang/.rvm/gems/ruby-2.0.0-p247@global/gems/rubygems-bundler-1.2.2/lib/rubygems_plugin.rb": dlopen(/Users/chiang/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle, 9): Library not loaded: /opt/local/lib/libssl.1.0.0.dylib   Referenced from: /Users/chiang/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle   Reason: image not found - /Users/chiang/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle (LoadError) 
like image 689
icemelon Avatar asked Nov 20 '13 09:11

icemelon


2 Answers

Things to verify...

  • How did you install rvm
  • hit rvm notes and check if it's installed properly
  • ruby -v, check for the version of ruby present

If you find any issues here, uninstall rvm using rvm implode and also remove ruby. Refer to the rvm installation guide for the use of this command.

\curl -L https://get.rvm.io | bash -s stable --ruby 

OR you can try the other way without removing the present rvm installation.

rvm get stable rvm reinstall 2.0.0 

Hope this helps.

like image 180
Bijendra Avatar answered Oct 11 '22 19:10

Bijendra


The following worked for me.

brew rm openssl brew cleanup openssl brew install openssl rvm reinstall ruby 

Apparently brew update or brew upgrade breaks the Ruby runtime which is what caused the error for me.

like image 34
singh1469 Avatar answered Oct 11 '22 17:10

singh1469