英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论