【问题标题】:Bundler::Source::Git::GitCommandError when using Inquisition gem使用 Inquisition gem 时的 Bundler::Source::Git::GitCommandError
【发布时间】:2019-07-11 03:55:40
【问题描述】:

根据客户的建议,我在我的 Rails 5.0 应用程序中使用了 inquisition gem。我按照这个link 并在 Gemfile 中添加了 gem 并运行 bundle,我收到以下错误:

E:\rails_projects\inquisition_example>捆绑获取 https://github.com/rubygarage/inquisition.git致命:无法访问 'https://github.com/rubygarage/inquisition.git/':错误:1407742E:SSL 例程:SSL23_GET_SERVER_HELLO:tlsv1 警报协议版本

由于错误 (2/4) 重试 git clone "https://github.com/rubygarage/inquisition.git" "C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/cache/bundler/git/inquisition-40e0b17fff1501354aa91e3ff3bbb85f990b5f49" --bare --no-hardlinks --quiet:Bundler::Source::Git::GitCommandError Git 错误:目录 E:/rails_projects/inquisition_example 中的命令 git clone "https://github.com/rubygarage/inquisition.git" "C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/cache/bundler/git/inquisition-40e0b17fff1501354aa91e3ff3bbb85f990b5f49" --bare --no-hardlinks --quiet 失败。致命的:无法 访问“https://github.com/rubygarage/inquisition.git/”: 错误:1407742E:SSL 例程:SSL23_GET_SERVER_HELLO:tlsv1 警报 协议版本

请帮帮我。

【问题讨论】:

标签: ruby-on-rails git


【解决方案1】:

此错误表示您在 Git 的 libcurl 中使用的 OpenSSL 版本太旧。 GitHub 仅支持 TLS 1.2 和 1.3,编译 libcurl 的 OpenSSL 版本不知道如何协商这些版本。

由于您使用的是 Windows,因此您应该将适用于 Windows 的 Git 更新到最新版本,其中将包括 OpenSSL 和 libcurl 的更新版本,以便 Git 可以正常工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-08
    • 1970-01-01
    • 2014-04-02
    • 1970-01-01
    • 1970-01-01
    • 2014-02-10
    • 1970-01-01
    相关资源
    最近更新 更多