在任何来源中都找不到rake-10.0.3(Bundler :: GemNotFound)

时间:2013-01-16 03:06:00

标签: ruby-on-rails ruby-on-rails-3 capistrano passenger

  

可能重复:
  Could not find rake-10.0.3 in any of the sources

我一直在尝试使用capistrano将rails 3应用程序部署到bluehost上。弹出这个错误 Could not find rake-10.0.3 in any of the sources (Bundler::GemNotFound)

我安装了rake 10.0.3。这是错误日志

0   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/spec_set.rb    90  in `materialize'
1   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/spec_set.rb    83  in `map!'
2   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/spec_set.rb    83  in `materialize'
3   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/definition.rb  113 in `specs'
4   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/definition.rb  158 in `specs_for'
5   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/definition.rb  147 in `requested_specs'
6   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/environment.rb 23  in `requested_specs'
7   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/runtime.rb 11  in `setup'
8   /home/myaccount/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler.rb 116 in `setup'

提前致谢

2 个答案:

答案 0 :(得分:1)

好像你没有使用rvm正确的宝石套装。因为即使你可以看到安装的宝石,它也没有被rvm接收。不久之后,我写了一篇关于如何create gem sets with rvm

的博客文章

尝试创建一个具有rake 10.0.3的rvm gem set,然后尝试再次运行bundle install。

HTH

答案 1 :(得分:1)

将以下内容添加到Gemfile可能会解决问题:

source 'https://rubygems.org'

出于某种原因,我自己将其删除了。