ruby-on-rails – 为什么我无法在Mac上安装任何宝石?

我尝试做任何宝石的宝石安装,我一直在收到错误。我想我需要重置和更新我的电脑上的东西,但不知道什么。

这里有一些命令行代码错误:

ERROR:  Could not find a valid gem 'multi_json' (>= 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)

ERROR:  Could not find a valid gem 'cowsay' (>= 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)

sudo gem install rubygems-update
Password:
ERROR:  Could not find a valid gem 'rubygems-update' (>= 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)

有谁知道我需要做什么来解决这个问题?我有一台新电脑,想知道我是否需要设置不同的用户或某些东西?

最佳答案
我有同样的问题,上述用户的解决方案为我工作。

rvm osx-ssl-certs update all

转载注明原文:ruby-on-rails – 为什么我无法在Mac上安装任何宝石? - 代码日志