ruby - 在 Mac 上从 1.1 降级到 OPENSSL 版本 1.0

标签 ruby macos openssl macos-mojave

我的系统上安装了 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/

相关文章:

ssl - OpenSSL - 在本地系统中工作但不在其他 LAN 系统中工作 [Intranet]

nginx - Nginx 是否符合开源 FIPS 标准?

ruby - 默认 : "now()" in Sequel generates literal embedded into the defenitiion of a table

ruby-on-rails - 在 Rails 模型 JSON 输出中包含任意字段

ruby - 从 == 指定数量的数组生成组合?

macos - Zsh 检测不安全的完成依赖目录

java - SunTlsRsaPremasterSecret KeyGenerator 不可用

ruby-on-rails - 推送到Heroku时“different prefix”错误和“Lockfile is unreadable”错误

c - Haskell:不支持的操作(协议(protocol)族不支持地址族)

c - 无法使用 ProC 链接 OpenVMS 中的 SSL 库