红宝石找不到有效的宝石

时间:2016-08-10 13:04:51

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

我一直在尝试开发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>

感谢您提供的任何帮助。

2 个答案:

答案 0 :(得分:0)

您可以尝试从http://rubygems.org/

获取它

答案 1 :(得分:0)

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