我使用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.
答案 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