【问题标题】:Error installing rspec (gem install rspec) on Windows在 Windows 上安装 rspec(gem install rspec)时出错
【发布时间】:2013-06-11 04:18:24
【问题描述】:

我正在使用 Windows 7 并尝试安装 rspec,但是当我在终端中输入 gem install rspec 时出现以下错误。

ERROR:   Could not find a valid gem 'rspec' <>=0>, here is why:
           Unable to download data from https://rubygems.org/ - SSL_connect SYSCA
LL returned=5 errno=0 state=SSLv2/v3 read server hello A <https://rubygems.org/l
atest_rspecs.4.8.gz>
ERROR:   Possible alternatives: rspec

我已经在整个互联网上寻找解决方案,但我没有找到任何东西。

【问题讨论】:

    标签: ruby rspec rubygems terminal


    【解决方案1】:

    错误消息的“SSL”部分听起来与 this issue 类似,其中包含您在本地拥有的证书和 ruby​​gems.org 正在使用的证书。有特定的instructions for Windows 向您展示如何下载更新的证书文件并使用它;可能值得一试。

    【讨论】:

    • 谢谢,设置 SSL_CERT_FILE=C:\path_to_downloaded_cert\cacert.pem gem install rspec - 现在可以正常工作了。
    猜你喜欢
    • 2015-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-20
    • 2012-06-09
    • 2019-03-26
    • 2013-10-17
    • 2014-04-16
    相关资源
    最近更新 更多