4

I'm trying to install Ruby on Rails on my machine.

Every time I run:

 sudo gem install rails

The terminal returns

ERROR:  Could not find a valid gem 'rails' (>= 0), here is why:
      Unable to download data from https://rubygems.org/ -         
Errno::ECONNRESET: Connection reset by peer - SSL_connect 
(https://api.rubygems.org/specs.4.8.gz)

How can I solve this?

Luis V.F
  • 43
  • 3
  • See [here](https://stackoverflow.com/questions/37253021/could-not-find-a-valid-gem-rhc-ssl-connect-server-certificate-verify-failed-o) and [here](https://stackoverflow.com/questions/40834691/ssl-error-with-rubygems-unable-to-connect) for related questions. – Albert Jul 25 '19 at 10:08

0 Answers0