気の向くままに書き綴る

勉強会参加したメモや日々の思ったことのメモ等

OS X 10.9 Mavericksアップデート後?3:bundle install ができない。OpenSSL

とうとう第三弾。

 

$ bundle install
Fetching source index from https://rubygems.org/
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile
sources and change 'https' to 'http'.

SSL certificate?じゃあOpenSSLかなぁと思い、確認。

$ openssl version
OpenSSL 1.0.1e 11 Feb 2013

古いのかなぁ
見てもあんまりわからんので

$ brew update
Already up-to-date.

最新版になっているし、この際に、Upgradeをかけることにした。

$ brew upgrade
==> Upgrading 2 outdated packages, with result:
imagemagick 6.8.7-0, mysql 5.6.13

全然関係ない、imagemagickMySQLのバージョンがあがっただけ^^;

ここでもう無理だーとなり、Google先生に伺うとこんなページを発見

OpenSSL Errors and Rails – Certificate Verify Failed

by Daniel Kehoe

Errors with Ruby 2.0の欄に書いてあった

 

これ通りにやってみる。


$ brew link openssl --force
Linking /usr/local/Cellar/openssl/1.0.1e... 1139 symlinks created

$ brew install curl-ca-bundle
Warning: curl-ca-bundle-1.87 already installed
すでに入ってたわ^^;

$ gem update --system
〜〜〜〜Release Notes〜〜〜〜〜



RubyGems system software updated

$ brew tap raggi/ale
Cloning into '/usr/local/Library/Taps/raggi-ale'...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 12 (delta 2), reused 11 (delta 1)
Unpacking objects: 100% (12/12), done.
Checking connectivity... done
Tapped 1 formula

$ brew install openssl-osx-ca
==> Downloading https://github.com/raggi/openssl-osx-ca/archive/1.0.3.tar.gz
######################################################################## 100.0%
==> make install PREFIX='/usr/local/Cellar/openssl-osx-ca/1.0.3' BREW='/usr/local/bin/brew'
==> Caveats
To get instant-on, please run:

openssl-osx-ca

To uninstall remove the openssl-osx-ca line from your crontab. e.g.

(crontab -l | grep -v openssl-osx-ca) | crontab -
==> Summary

$ bundle install
Fetching source index from https://rubygems.org/
Using rake (10.1.0)
Using i18n (0.6.5)

 

 

 無事!動きました(*´ω`*)