相关疑难解决方法(0)

Ruby和"您必须使用OpenSSL支持重新编译Ruby或更改Gemfile中的源代码"

使用rvm我将我的ruby升级到1.9.3-p392,也添加了2.0.0,我运行bundle命令时尝试使用这个版本时我得到了这个错误.

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.
Run Code Online (Sandbox Code Playgroud)

我已经按照几个不同的说明来解决这个问题.我试过删除版本并使用rvm选项安装它

--with-openssl-dir=$HOME/.rvm/usr
Run Code Online (Sandbox Code Playgroud)

我用rvm和macports安装了OpenSSL.两者都没有帮助解决问题.我甚至使用以下方法更改了ssl证书的文件位置:

export SSL_CERT_FILE=/Users/DarkLord/.rvm/usr/ssl/cert.pem
Run Code Online (Sandbox Code Playgroud)

无论我做什么,我都会继续得到错误.有人可以帮我解决这个问题吗?

ruby macos openssl rvm

34
推荐指数
7
解决办法
2万
查看次数

标签 统计

macos ×1

openssl ×1

ruby ×1

rvm ×1