加载RubyGems插件时出错,openssl.bundle(LoadError) [英] Error loading RubyGems plugin ,openssl.bundle (LoadError)

查看:2154
本文介绍了加载RubyGems插件时出错,openssl.bundle(LoadError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ruby新手。当我输入任何与宝石相关的东西时,下面的错误将会发生。为什么导致它,以及如何解决这个问题?谢谢!

 加载RubyGems插件时出错/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):未加载库:/opt/local/lib/libssl.1.0.0.dylib 
引用自:/Users/chiang/.rvm/rubies/ruby-2.0.0- p247 / lib / ruby​​ / 2.0.0 / x86_64-darwin12.3.0 / openssl.bundle
原因:未找到映像 - /Users/chiang/.rvm/rubies-2.0.0-p247/lib/ruby /2.0.0/x86_64-darwin12.3.0/openssl.bundle(LoadError)


解决方案<

点击 rvm notes 并检查它是否正确安装。 检查ruby的版本


如果您在此处发现任何问题,请使用 rvm implode 并删除ruby。请参阅 rvm安装指南了解使用此命令。

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

可以尝试其他方式

  rvm get stable 
rvm重新安装2.0.0

希望这会有所帮助。


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)

解决方案

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.

这篇关于加载RubyGems插件时出错,openssl.bundle(LoadError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆