gpt4 book ai didi

ruby-on-rails - 安装 gem 时 SSL 证书验证失败

转载 作者:太空宇宙 更新时间:2023-11-03 14:11:26 29 4
gpt4 key购买 nike

我在 Windows 上设置了 Rails 项目和数据库,但缺少一些 gem。尝试安装它们时出现以下错误:

    Following gems were not installed:    bundler:  Could not find a valid gem 'bundler' (>= 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/specs.4.8.gz)

我试过了

https://gist.github.com/luislavena/f064211759ee0f806c88

SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/

但这些都不起作用。有什么想法吗?

最佳答案

作为临时解决方法,您只需将 gemfile 中的 source 'https://rubygems.org' 更改为 source http://rubygems.org。然后运行 ​​bundle

我之前遇到过完全相同的问题,之后,我能够安装我的 gems。

要获得更好的解决方案,请运行 gem update --system

关于ruby-on-rails - 安装 gem 时 SSL 证书验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29374593/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com