Ruby on Rails:当 运行 "Bundle Install" 时如何解决此错误?

Ruby on Rails: How do I solve this error when running "Bundle Install"?

我刚刚在我的 windows 机器上下载了 Rails 安装程序 (Rails 4.1.8),当我尝试 运行 bundle install我收到以下错误:

C:\Sites\BettingSite>bundle install Fetching gem metadata from https://rubygems.org/............ Fetching additional metadata from https://rubygems.org/.. Resolving dependencies...

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rake- 10.4.2.gem) An error occurred while installing rake (10.4.2), and Bundler cannot continue. Make sure that 'gem install rake -v '10.4.2'' succeeds before bundling.

我也有一个错误 "DL is deprecated please use fiddle" 但我通过遵循以下 Whosebug 问题的第二个答案阻止了这个错误的出现:Ruby 2.0.0p0 IRB warning: "DL is deprecated, please use Fiddle"

有人可以告诉我如何解决这个错误吗?

也感谢@Stephane J 的 link 这已经解决了。

问题是我需要更改:

source 'https://rubygems.org'

source 'http://rubygems.org'

在 Gemfile 中,正如对此 link 的建议:bundle install fails with SSL certificate verification error