执行任何rake操作时,我得到以下内容:
rake aborted! You have already activated rake 10.1.0,but your Gemfile requires rake 10.0.3. Using bundle exec may solve this. /home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/runtime.rb:33:in `block in setup' /home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/runtime.rb:19:in `setup' /home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler.rb:120:in `setup' /home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/setup.rb:7:in `<top (required)>' /home/cristi/code/kodion/config/boot.rb:6:in `<top (required)>' /home/cristi/code/kodion/config/application.rb:1:in `<top (required)>' /home/cristi/code/kodion/Rakefile:5:in `<top (required)>' (See full trace by running task with --trace)
解决方法
您需要在捆绑包的上下文中运行该命令(推荐):
> bundle exec rake db:version
或者您需要卸载有问题的rake gem版本.
> gem uninstall rake > # pick version 10.1.0 from the offered choices.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。