无法与安装rbenv的ruby捆绑在一起

时间:2015-10-23 10:34:28

标签: ruby-on-rails ruby rbenv

我使用1.9.3-p484安装了ruby版本rbenv。我使用rbenv安装了homebrew。我不知道如何解决这个问题。我在OS X El Capitan上。

运行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.

1 个答案:

答案 0 :(得分:2)

卸载ruby并尝试重新安装,如

CONFIGURE_OPTS="--with-opt-dir=/usr/local/opt/openssl" rbenv install 1.9.3-p484

或试试这个

RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/local rbenv install 1.9.3-p484