本文介绍了加载 RubyGems 插件时出错,openssl.bundle (LoadError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是红宝石新手.当我输入任何与 gem 相关的内容时,会发生以下错误.为什么会导致它以及如何解决问题?谢谢!
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)
推荐答案
要验证的事情...
- 你是如何安装 rvm 的
- 点击
rvm notes
并检查是否安装正确 ruby -v
,检查当前的ruby版本
- How did you install rvm
- hit
rvm notes
and check if it's installed properly ruby -v
, check for the version of ruby present
如果您在此处发现任何问题,请使用 rvm implode
卸载 rvm 并删除 ruby.该命令的使用请参考rvm安装指南.
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
或者您可以尝试其他方式而不删除当前的 rvm 安装.
OR you can try the other way without removing the present rvm installation.
rvm get stable
rvm reinstall 2.0.0
希望这会有所帮助.
这篇关于加载 RubyGems 插件时出错,openssl.bundle (LoadError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!