LoginSignup
12
14

More than 5 years have passed since last update.

ubuntu 12.04 + rbenv ruby 1.9.3でbundle installしようとするとCould not load OpenSSL. が出てしまうので対処

Posted at

rbenv + ruby-buildを利用してrbenv install 1.9.3-p392したは良い物のbundle install実行時に

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.

と言われてしまいました。

大抵

sudo apt-get install zlib1g-dev libssl-dev

の実行で解決しているみたいですが、自分の場合は

RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/bin/" rbenv install 1.9.3-p392

とopenssl対応の形でbuildしないとダメだったみたいです。

12
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
14