abhishek77in
abhishek77in

Reputation: 1896

Not able to bundle with ruby installed with rbenv

I have installed ruby version 1.9.3-p484 using rbenv. I installed rbenv using homebrew. I am not sure how to resolve this issue. I am on OS X El Capitan.

I get the following error when I run 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.

Upvotes: 1

Views: 1681

Answers (1)

Zahid
Zahid

Reputation: 1830

Uninstall your ruby and try to reinstall it like

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

Or try this

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

Upvotes: 4

Related Questions