LoginSignup
0

More than 5 years have passed since last update.

Mac上のrvmでruby 2.0.0を入れたらbundle installでOpenSSLのエラーが出る

Last updated at Posted at 2013-03-02

SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint (OpenSSL::SSL::SSLError)

というエラーが出る。

Gemfileの

source "https://rubygems.org"

source "http://rubygems.org"

にすれば動くけどなんかすっきりしない…。

最終的には、

  • 最新版のbrewにする
  • opensslをbrewで入れる
  • curl-ca-bundleをbrewで入れる
  • RVMを消す

とやったらエラーが消えた。

以下、その時の手順。

console
$ rvm implode

ターミナルを一旦落として再び起動

console
$ CC=clang
$ brew update
$ brew -v
Homebrew 0.9.4

$ brew install openssl
$ brew link openssl --force
$ brew install curl-ca-bundle

$ curl -L https://get.rvm.io | bash
$ rvm -v

rvm 1.18.15 () by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

必要なライブラリを確認してbrewで入れる

$ CC=clang rvm requirements

2.0.0のインストール

$ CC=clang rvm install 2.0.0 --with-openssl-dir=`brew --prefix openssl` --verify-downloads 1

とするとインストール環境。

そして、OpenSSLのエラーが消えた!

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
0