Posted at

OSX+rvm(ruby-2.0.0)でgemがインストールできない

More than 5 years have passed since last update.

gemsetつくったのでbundlerいれようとしたところでエラーで動かない(´Д`;)

$ gem install bundler

ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz)

ぐぐってみたところ、ちゃんとありました(´Д`;)

Why cant I install any gems on my Mac?

$ rvm osx-ssl-certs update all

Updating certificates for /etc/openssl/cert.pem: Updating certificates in '/etc/openssl/cert.pem'.
mkdir: /etc/openssl: Permission denied
Password:
Updated.
Updating certificates for /etc/openssl/cert.pem: Already are up to date.
Updating certificates for /etc/openssl/cert.pem: Already are up to date.

$ gem install bundler
Fetching: bundler-1.3.5.gem (100%)
Successfully installed bundler-1.3.5
Parsing documentation for bundler-1.3.5
Installing ri documentation for bundler-1.3.5
1 gem installed

すばらしぃ