Ruby on Rails 错误“Rails 4.0.0, Gemfile requires rake 10.1.0 for Rake” 解决方案
来源:互联网 发布:淘宝模块是什么 编辑:程序博客网 时间:2024/05/20 20:55
问题:
在 rake db:migrate 出现问题:
Joses-MacBook-Air:crumblr JRV$ rake db:migraterake aborted!You have already activated rake 10.1.1, but your Gemfile requires rake 10.1.0. Using bundle exec may solve this./usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup'/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `<top (required)>'/Users/JRV/crumblr/config/boot.rb:4:in `<top (required)>'/Users/JRV/crumblr/config/application.rb:1:in `<top (required)>'/Users/JRV/crumblr/Rakefile:4:in `<top (required)>'(See full trace by running task with --trace)
解决方案:
如错误提示中建议的,使用:bundle exec rake db:migrate
或者不添加前缀,使用:bundle update rake
http://stackoverflow.com/questions/21220371/rails-4-0-0-gemfile-requires-rake-10-1-0-for-rake
0 0
- Ruby on Rails 错误“Rails 4.0.0, Gemfile requires rake 10.1.0 for Rake” 解决方案
- Ruby on Rails中的Rake教程(Rake如何把我灌醉!)
- Ruby on Rails中的Rake教程
- Ruby on Rails(ROR)——rake routes
- Ruby On Rails--rake 任务中定义方法的陷阱
- Rails Rake指南
- Rails Rake 指南
- Rails Rake指南
- rails rake db
- rake aborted! undefined local variable or method `version_requirements' for #<Rails::GemDependency:0
- Ruby on rails开发从头来(windows)(二十八)- 使用Rake运行测试
- Ruby on Rails,rake工具使用和数据库migrations迁移的概念
- ruby on rails学习第5篇:rake的用法(转载)
- ruby on rails执行RAILS_ENV=production rake assets:precompile报warning
- rails rake脚本快速入门
- rails学习笔记: rake db
- rails中创建rake任务
- rails之自定义Rake任务
- 香港警花卧底搜集证据 黑帮头目等37人被拘(图)
- 如何暂时取消xcode工程中所有NSLog的输出日志
- Ubuntu12.04嵌入式交叉编译环境arm-linu-gcc搭建过程,图解
- extjs中的recordType
- #25 $CURDIR incompatible with gnumake
- Ruby on Rails 错误“Rails 4.0.0, Gemfile requires rake 10.1.0 for Rake” 解决方案
- 使用 Linux 系统调用的内核命令
- POJ 2538 WERTYU 模拟
- 此文胜过你听三年的培训课,最少省十万
- 如何判断ios设备中是否安装了某款应用
- C#.net----方法
- spring 返回 JSON乱码问题的解决 及个人 动态加载ztree树结构的json数据代码
- 程序员面试精要 一 应聘求职(面试宝典书摘)
- 实时系统的基本特性