L
L
LB7772015-02-09 14:15:28
Ruby on Rails
LB777, 2015-02-09 14:15:28

How to fix an error when downloading gem packages?

I have win8, installed Ruby on rails, started installing sass with gem install sass and got this error:

ERROR:  Could not find a valid gem 'sass' (>= 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://api.rubygems.o
rg/latest_specs.4.8.gz)

The same error pops up on any connection through the gem.
I searched the Internet, but what I found did not solve this problem.
Unfortunately, I'm not strong in Ruby to figure it out myself :(
How to fix this error?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
L
LB777, 2015-02-09
@LB777

The answer was found here https://gist.github.com/luislavena/f064211759ee0f806c88
From here https://github.com/rubygems/rubygems/tags download the desired version

C:\>gem install --local C:\rubygems-update-1.8.30.gem
C:\>update_rubygems --no-ri --no-rdoc

ruby is updated and everything works :)

O
OnYourLips, 2015-02-09
@OnYourLips

Install vagrant and run the code in it.
On windows, I can't get ruby ​​to work.

V
Viktor Vsk, 2015-02-09
@viktorvsk

I would say so, for ruby ​​I would not call windows working

A
Artem Denezhny, 2015-02-09
@denegny

I have win8...

did not continue to read))

T
Termux, 2017-01-13
@Termux

guides.rubygems.org/ssl-certificate-update/#instal...
https://rubygems.org/downloads/rubygems-update-2.6...

C:\Users\Termux
λ gem install --local c:\warez\_dev\_src\rubygems-update-2.6.7.gem
Successfully installed rubygems-update-2.6.7
Parsing documentation for rubygems-update-2.6.7
Installing ri documentation for rubygems-update-2.6.7
Done installing documentation for rubygems-update after 93 seconds
1 gem installed

λ update_rubygems --no-ri --no-rdoc
RubyGems 2.6.7 installed

=== 2.6.7 / 2016-09-26

Bug fixes:

* Install native extensions in the correct location when using the
  `--user-install` flag. Pull request #1683 by Noah Kantrowitz.
* When calling `Gem.sources`, load sources from `configuration`
  if present, else use the default sources. Pull request #1699
  by Luis Sagastume.
* Fail gracefully when attempting to redirect without a Location.
  Pull request #1711 by Samuel Giddins.
* Update vendored Molinillo to 0.5.1. Pull request #1714 by
  Samuel Giddins.

...

C:\Users\Termux
λ gem --version
2.6.7


C:\Users\Termux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question