我刚刚在我的Windows机器上下载了Rails Installer(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已被弃用请使用小提琴”但我通过在下面的StackOverFlow问题上按下第二个答案来防止出现此问题:Ruby 2.0.0p0 IRB warning: "DL is deprecated, please use Fiddle"
有人可以告诉我如何解决这个错误吗?
答案 0 :(得分:0)
非常感谢@Stephane J的链接已经解决了。
问题在于我需要改变:
source 'https://rubygems.org'
到
source 'http://rubygems.org'
在Gemfile中,如此链接所建议的那样:bundle install fails with SSL certificate verification error