Mel*_*lon 8 rake ruby-on-rails rake-task ruby-on-rails-3 ruby-on-rails-3.1
我正在为我的项目使用Ruby Enterprise Edition.当我通过运行命令检查所有我的rake任务时rake -T,我收到以下错误消息:
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.
Run Code Online (Sandbox Code Playgroud)
错误消息暗示我可以使用bundle exec来解决问题,但我不确定如何?那么,如何摆脱这个错误信息?
- - - - - - - - - - - - - - - 更多 - - - - - - - - - - --------
我更喜欢更新我的Gemfile而不是运行bundle exec rake -T.但是当我打开我的项目Gemfile时,我没有在我的Gemfile中看到rake 0.9.2,为什么错误消息会抱怨我有它?我可以在哪里定义rake 0.9.2 ??
运行bundle exec rake -T,这可以确保Gemfile中指定的rake版本正在运行,而不是另一个版本.
或者,更新您的Gemfile.