【问题标题】:ruby could not find valid gem红宝石找不到有效的宝石
【发布时间】:2016-08-10 13:04:51
【问题描述】:

我一直在尝试开发 Ruby on Rails 应用程序,但不能。我已卸载并重新安装,但它一直说找不到证书,即使我可以在我的计算机上看到证书。

C:\DevKit>gem install json --platform=ruby
ERROR:  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 failed (https://api.rubygems.org/specs.4.8.gz)
C:\DevKit>gem install json -- platform=ruby2.2
ERROR:  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 failed (https://api.rubygems.org/specs.4.8.gz)
C:\>update_rubygems --no-ri --no-rdoc
RubyGems 2.3.0 installed
RubyGems installed the following executables:
    C:/Ruby22/bin/gem

C:\>cd devkit
C:\DevKit>cd assignment_10
C:\DevKit\Assignment_10>cd C:\DevKit\Assignment_10
C:\DevKit\Assignment_10>cd ..
C:\DevKit>gem install json --platform=ruby
ERROR:  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 failed (https://api.rubygems.org/specs.4.8.gz)
C:\DevKit>gem install bson_ext --platform=ruby
ERROR:  Could not find a valid gem 'bson_ext' (>= 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)
C:\DevKit>

感谢您提供的任何帮助。

【问题讨论】:

    标签: ruby ruby-on-rails-3.2 rubygems


    【解决方案1】:

    你可以尝试从http://rubygems.org/获取它

    【讨论】:

      【解决方案2】:

      如果你想在 Windows 上使用 Rails,我建议你看看这个非常棒的安装程序:RailsInstaller

      【讨论】:

        猜你喜欢
        • 2016-02-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-08-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多