2016-08-10 76 views
0

我一直在試圖開發一個Ruby on Rails應用程序,但不能。我已經unistalled並重新安裝,它一直說cert沒有找到,即使我可以在我的電腦上看到證書。紅寶石找不到有效的寶石

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> 

感謝您提供任何幫助。

回答