Ruby 执行 bundle install 报错: Could not load OpenSSL.

noob · 2019年04月13日 · 最后由 noob 回复于 2019年04月13日 · 3767 次阅读

本级版本以及 ruby 版本

Mac 10.14.4 ruby 2.3.1 openssl 已安装

报错具体信息

执行 bundle install 错误信息:

$ bundle install           
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using RVM are available at rvm.io/packages/openssl.

按着提示信息将 https 更改为 http 不起作用,使用 source 'https://gems.ruby-china.com' 也不起作用

参考的连接

issues_197 也不起作用

各位有遇到这种情况是怎么解决的,求助,折腾一天了,还没解决

uninstall openssl 和 ruby

然后执行

brew install openssl

rvm install 2.3.1 --with-openssl-dir=/usr/local/opt/openssl

看看好使不

gemfile 里 source 'https://gems.ruby-china.com' 改成 http 我的是可以的

Awlter1 回复

可以了,🙏谢谢谢谢

noob 关闭了讨论。 04月13日 20:45
需要 登录 后方可回复, 如果你还没有账号请 注册新账号