Rake Aborted Error - 无法找到bundler - 无法安装bundler

时间:2015-02-26 09:33:59

标签: ruby-on-rails ruby

你好,我刚做了一个脚手架。然后尝试运行rake db:migrate。试图安装捆绑,但不能。有人可以帮忙吗?

Joey@JOEY-PC ~/desktop/safsy (master)
$ rake db:migrate
rake aborted!
cannot load such file -- bundler/setup
c:/Users/Joey/desktop/safsy/config/boot.rb:3:in `<top (required)>'
c:/Users/Joey/desktop/safsy/config/application.rb:1:in `<top (required)>'
c:/Users/Joey/desktop/safsy/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Joey@JOEY-PC ~/desktop/safsy (master)
$ gem install bundler
ERROR:  Could not find a valid gem 'bundler' (>= 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/latest_specs.4.
8.gz)


Joey@JOEY-PC ~/desktop/safsy (master)
$ gem install bundler
ERROR:  Could not find a valid gem 'bundler' (>= 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/latest_specs.4.
8.gz)

1 个答案:

答案 0 :(得分:2)

试试这个,似乎正是你的问题:

https://gist.github.com/luislavena/f064211759ee0f806c88