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

Ruby 2.4 on Mac OS Mojave : image not found ... related to openssl.bundle

所以我在 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 并重新安装。