How to update Gem on windows?

1

My problem is that I can not update the gem

I downloaded rubyInstaller I tried to run the command to update:

gem update rails --no-document

But unfortunately does not update gives the error:

gem update rails --no-document
Updating installed gems
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

I searched online, but no help was clear! Does anyone know of a tutorial on how to make it work?

I appreciate the help!

    
asked by anonymous 03.11.2016 / 14:34

2 answers

2

When I had this problem I decided to use this tutorial , but nowadays for Windows I prefer to use Juby , much less headaches.

    
03.11.2016 / 15:45
1

I think your problem is solved by reinstalling rubygems:

  • Download RubyGems in zip format
  • Access the directory where you unzipped rubygems
  • Run ruby setup.rb
  • Test running update gem install --system
  • I also installed the DevKit .

  • Download, unzip and access the folder.
  • Run the ruby dk.rb init and ruby dk.rb install commands inside the folder in which DevKit was unzipped.
  • 07.11.2016 / 16:26