Mac OS Mojave 上的 Ruby 2.4:找不到图像...与 openssl.bundle 相关

Mat*_*han 7 ruby macos homebrew rbenv

所以我在 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]
Run Code Online (Sandbox Code Playgroud)

我已经做了一堆 brew update && brew upgrade ,但我被卡住了......有什么指示吗?

Mat*_*han 4

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