I tried doing gem install
for just about any gem and I have been getting errors. I think I need to reset and or update something on my computer but not sure what.
Here is some of the command line code errors:
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)
Does anyone know what I need to do to fix this? I got a new computer and was wondering if I need to set up the user differently or something?
我有同样的问题,以上用户的解决方案为我工作。
rvm osx-ssl-certs update all
There seems to be this common issue lately. If you're on a Mac, try doing this if you installed via RVM:
rvm osx-ssl-certs update all
或者,您可以使用以下命令添加不安全的ruby源:
sudo gem sources -a http://rubygems.org
For those that arent using rvm, but are using homebrew:
brew tap raggi/ale
brew install openssl-osx-ca
This worked for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.