我的系统上安装了 ruby 版本 2.1.5。
在运行捆绑安装时,我得到 “无法加载 OpenSSL。 您必须使用 OpenSSL 支持重新编译 Ruby,或者将 Gemfile 中的源从“https”更改为“http”。有关使用 RVM 进行 OpenSSL 编译的说明,请访问 http://rvm.io/packages/openssl ”
我的 Gemfile 仅有 http 的资源。
执行“rvm pkg install openssl”时: ==> 公式 curl-openssl glib-openssl openssl@1.1 ✔ 自制/portable-ruby/portable-openssl
没有openssl@1.0和openssl
如何从 1.0 降级到 openssl@1.0。
已经尝试过rvm reinstall 2.1.5 --with-openssl-dir=brew --prefix openssl@1.0
但这对我来说没有用。
最佳答案
之前的解决方案不再起作用,我通过以下步骤成功了:
brew install rbenv/tap/openssl@1.0 ln -sfn /usr/local/Cellar/openssl@1.0/1.0.2t /usr/local/opt/openssl
关于ruby - 在 Mac 上从 1.1 降级到 OPENSSL 版本 1.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59155991/