我已经在我的电脑上安装了 rubyinstaller-2.0.0-p195 并用 Ruby 打开了命令提示符。接下来我运行gem update --system
命令更新并成功更新。
现在,每当我尝试运行时gem install <program>
,例如。gem install rhc
, gem install af
, 每次都安装失败,并显示类似SSL_certificate相关错误,如下所示 -
C:\Windows\System32>gem install rhc
ERROR: Could not find a valid gem 'rhc' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/rhc-1.15.6.gemspec.rz)
ERROR: Possible alternatives: rhc