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

Not able to bundle with ruby installed with rbenv

我使用 rbenv 安装了 ruby 版本 1.9.3-p484。我使用 homebrew 安装了 rbenv。我不确定如何解决这个问题。我在 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.

卸载您的 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