gpt4 book ai didi

windows - Windows 上 Ruby 的 SSL 错误

转载 作者:可可西里 更新时间:2023-11-01 09:52:50 26 4
gpt4 key购买 nike

赢 7 x64

每当我尝试安装 gem 时,我都会收到 SSL 错误。

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)

基本上,我有 this issue ,但修复对我不起作用。

尝试从 RubyInstaller 全新安装 Ruby 2.2.2| ,但这给了我 gem 版本 2.4.5。已卸载 Ruby。

尝试从 RubyInstaller 全新安装 Ruby 2.1.6| , 收到 SSL 错误。试过上面的修复,不行。无法安装 bundler 。已卸载 Ruby。

尝试从 RailsInstaller 进行全新安装.从 bundler 附带的意义上说,这是有效的。所以现在我可以运行 bundle installbundle update 来获取 gem 。但我仍然不能 gem install xxx 任何东西。

最佳答案

首先尝试更新 ruby​​gems:

  1. C:\> gem install ruby​​gems-update -s http://rubygems.org
  2. C:\> update_rubygems

然后再次尝试安装gem:

C:\> gem 安装 bundler

关于windows - Windows 上 Ruby 的 SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30406674/

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