【问题标题】:I am getting error while installing json by gem using Ruby使用 Ruby 通过 gem 安装 json 时出现错误
【发布时间】:2015-03-04 18:21:44
【问题描述】:
  1. 我已经下载了 Ruby 2.1.5

  2. cmd 检查命令:ruby -v 返回结果:ruby 2.1.5

  3. 从这里下载 DevKit 文件 DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe

  4. 将 DevKit 解压到路径 C:\Ruby\DevKit

  5. cd C:\Ruby\DevKit

  6. ruby dk.rb init

  7. ruby dk.rb review

  8. ruby dk.rb install

到目前为止,一切都很好,但从现在开始,我遇到了错误。

我是从命令传递过来的

cmd : gem install json

并出现以下错误。

could not find a valid gem 'json'<>=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 faild(https:api.rubygem.org/specs.4.8.gz)

【问题讨论】:

    标签: ruby json installation windows-7-x64


    【解决方案1】:

    这是 ruby​​gems 最近更改其证书颁发机构的一个很常见的问题。

    问题的详细分类以及解决方法可以在here找到。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-07
      • 2014-01-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多