【问题标题】:Ruby 2.4 on Mac OS Mojave : image not found ... related to openssl.bundleMac OS Mojave 上的 Ruby 2.4:找不到图像...与 openssl.bundle 相关
【发布时间】:2020-05-16 17:40:01
【问题描述】:

所以我在 Mac OS Mojave 上将我的 Ruby 升级到了 2.4.9。

我在安装 gem 时遇到问题...

    proj$ gem install google-cloud-vision
ERROR:  Loading command: install (LoadError)
    dlopen(/Users/mc/.rbenv/versions/2.4.2/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/mc/.rbenv/versions/2.4.2/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle
  Reason: image not found - /Users/mc/.rbenv/versions/2.4.2/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

proj$ ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]

我已经做了一堆 brew update && brew upgrade,但是我卡住了……有什么建议吗?

【问题讨论】:

  • 删除 Ruby 并重新安装。
  • ...包括使用rbenv 存储的版本。谢谢。

标签: ruby macos homebrew rbenv


【解决方案1】:

根据评论:删除 Ruby 并重新安装。

【讨论】:

  • 确实有效。我删除了我的 ~/.rbenv 并在那之后做了一个 bund linstall
猜你喜欢
  • 1970-01-01
  • 2019-04-01
  • 2015-02-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-10-31
  • 1970-01-01
相关资源
最近更新 更多