25

在继续阅读之前,我必须说我已经在 google 和 stackoverflow 上阅读并尝试过类似的问题和答案。

我的问题是:

  • 捆绑安装或更新什么都不做
  • gem uninstall rake 拒绝,因为 rake 是默认 gem
  • 我不能对所有命令使用 bundle exec

还有什么想法吗?!

4

6 回答 6

45

At the root of project, do:

gem list rake 

You will see probably more than one version. If so, then remove the version you don't need (i.e. 0.9.6) by command:

gem uninstall rake

it will ask which version to remove. Or try doing

bundle update rake
于 2013-07-04T17:00:13.533 回答
9

我解决了这个问题

宝石安装耙

于 2013-07-07T07:46:23.467 回答
6

这解决了我的问题

bundle update rake

于 2013-07-29T21:50:00.893 回答
3

您可能安装了旧版本的 rake。在这种情况下,请使用:

gem list rake

如果输出仅显示一个版本:

*** LOCAL GEMS ***

rake (0.9.6)

然后只需安装较新的版本

宝石安装耙

于 2013-11-21T09:38:05.307 回答
1

我知道已经 2 个月了,但只是想分享我是如何解决这个问题的。你试过删除 gemfile.lock 吗?它解决了我的问题:

rm Gemfile.lock
bundle
于 2013-09-23T00:09:39.730 回答
0

由于它是您的基本安装的 gem 已过时,只需使用

gem update rake
于 2013-10-27T02:34:17.027 回答