【发布时间】: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存储的版本。谢谢。