库未加载:/opt/local/lib/libssl.1.0.0.dylib (LoadError) [英] Library not loaded: /opt/local/lib/libssl.1.0.0.dylib (LoadError)

查看:50
本文介绍了库未加载:/opt/local/lib/libssl.1.0.0.dylib (LoadError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现我不能再gem push ...了,一些挖掘导致我需要更新我的 RVM SSL 证书.

I just discovered I can no longer gem push … any more and some digging led me to a need to update my RVM SSL certs.

我运行了 rvm osx-ssl-certs status all 但这给了我:

I ran rvm osx-ssl-certs status all but that gave me:

/Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': dlopen(/Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle, 9): Library not loaded: /opt/local/lib/libssl.1.0.0.dylib (LoadError)
  Referenced from: /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle
  Reason: image not found - /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle
    from /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/openssl.rb:17:in `<top (required)>'
    from /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
Certificates for /usr/local/etc/openssl/cert.pem: Up to date.
Certificates for : Old.
Certificates for /etc/openssl/cert.pem: Up to date.

rvm -v 显示我正在运行最新的 RVM(截至今天)

rvm -v shows I am running the latest RVM (as of today)

rvm 1.22.15 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

奇怪的是我不知道为什么它指的是 ruby-2.0.0-p195 但是正如 rvm list 给出的

Oddly I am not sure why it's referring to ruby-2.0.0-p195 however as rvm list gives

rvm rubies

   ruby-1.9.3-p392 [ x86_64 ]
   ruby-2.0.0-p195 [ x86_64 ]
=* ruby-2.0.0-p247 [ x86_64 ]

任何想法如何解决这个问题?

Any ideas how to fix this?

推荐答案

你的问题提到了三个路径/opt/local/usr/local/etc/openssl 它们分别属于 MacportsHomebrewSM 框架.

Your questions mentions three paths /opt/local, /usr/local and /etc/openssl they belong to Macports, Homebrew and SM Framework respectively.

由于最后一个用于构建静态红宝石,因此无害且与问题无关.另外两个建议您在安装 rubies 之间从 ma​​cports 切换到 homebrew.

As the last one is used to build static rubies it is harmeless and not related to the problem. The other two suggest that you have switched from macports to homebrew between installing the rubies.

您需要重新安装 ruby-2.0.0-p195,它仍然引用来自 ma​​cports 的旧路径,您可以使用:

You need to reinstall ruby-2.0.0-p195 which is referring still the old paths from macports, you can do it with:

rvm reinstall ruby-2.0.0-p195

您可以获得有关它们运行时使用的 rubies 和 openssl 路径的更多详细信息:

You can get more details about the rubies and openssl paths they use running:

rvm --debug osx-ssl-certs update all

这篇关于库未加载:/opt/local/lib/libssl.1.0.0.dylib (LoadError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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