加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Rails 3.2:需要rake 10.0.3

发布时间:2020-12-17 04:35:46 所属栏目:百科 来源:网络整理
导读:执行任何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.r
执行任何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没有解决任何问题.

解决方法

您需要在捆绑包的上下文中运行该命令(推荐):
> bundle exec rake db:version

或者您需要卸载有问题的rake gem版本.

> gem uninstall rake
>  # pick version 10.1.0 from the offered choices.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读