SSL error with Ruby on Windows

Win 7 x64

Whenever I try to install gem, I get an SSL error.

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (https://your-dns-needs-immediate-attention.win/quick/Marshal.4.8/responders-2.1.0.gemspec.rz)

Basically, I have this question , but the fix does not work for me.

Tried a new installation of Ruby 2.2.2 from RubyInstaller , but this gave me gem version 2.4.5. Remote Ruby.

I tried a new installation of Ruby 2.1.6 from RubyInstaller , received an SSL error. I tried to fix it above, do not go. Unable to install package. Remote Ruby.

I tried a new installation from RailsInstaller . This worked, in the sense that it was related to the supplier. Now I can run bundle installand bundle updateto get gems. But I still can’t gem install xxxdo anything.

+2
source share
1 answer

Try updating rubygems first:

  • C:\> gem install rubygems-update -s http://rubygems.org
  • C:\> update_rubygems

Then try installing gem again:

C:\> gem install bundler

+5
source

Source: https://habr.com/ru/post/1657366/


All Articles