当我尝试安装一个Gem时,它显示以下错误:

huangapple go评论72阅读模式
英文:

when i try to install a gem it says this error

问题

当我尝试使用gem install gosu安装Gosu时,它显示了以下错误信息:

错误:无法找到有效的gem 'gosu'(>= 0),原因如下:
无法从https://rubygems.org/下载数据 - SSL_connect返回=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)

我正在使用Ruby 2.2.2和Devkit版本4.7.2。

我不知道如何解决这个问题。

英文:

when i tried installing gosu using gem install gosu, it said:
ERROR: Could not find a valid gem 'gosu' (>= 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.org/latest_specs.4.8.gz)

i am using ruby 2.2.2 and devkit version 4.7.2

i dont know how to solve this problem

答案1

得分: 1

I'm not familiar with devkit but I had a similar issue a while back using rvm to manage ruby versions. The older ruby needed to have updated ssl certificates downloaded.

Does devkit manage your ruby versions? If so, you might look around in the docs to find a way to update your certificates.

If you happen to use rvm on a mac, the command to do this is:
rvm osx-ssl-certs update all

If no one else that is more familiar with devkit chimes in, I'll see if I can help you out more.

英文:

I'm not familiar with devkit but I had a similar issue a while back using rvm to manage ruby versions. The older ruby needed to have updated ssl certificates downloaded.

Does devkit manage your ruby versions? If so, you might look around in the docs to find a way to update your certificates.

If you happen to use rvm on a mac, the command to do this is:
rvm osx-ssl-certs update all

If no one else that is more familiar with devkit chimes in, I'll see if I can help you out more.

huangapple
  • 本文由 发表于 2023年6月19日 03:24:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76502207.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定