运行rails时Ruby on Rails错误 [英] Ruby on rails error when running rails s

查看:92
本文介绍了运行rails时Ruby on Rails错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Um对Rails很陌生,并且在运行命令时会出现错误 滑轨 它说 在任何来源中都找不到rake-0.9.2.2 运行bundle install以安装缺少的gem. 当我运行捆绑安装时,什么都没发生

Um quite new to rails and um getting an error when run the command rails s it says Could not find rake-0.9.2.2 in any of the sources Run bundle install to install missing gems. when I run bundle install nothing happened

我的宝石清单有0.9.2.2的耙度 有什么问题吗? 我的红宝石版本是1.9.3 预先谢谢你

my gem list has rake 0.9.2.2 what can go wrong? my ruby version is 1.9.3 Thank you in advance

推荐答案

  1. 删除所有版本的Rake ==> gem卸载rake
  2. 删除您的gemfile.lock => rm Gemfile.lock
  3. 在您的gemfile
  4. 上删除宝石"rake"
  5. 运行bundle install
  6. 手动安装Rake:gem install rake --version=10.0.4
  1. Remove all the versions of Rake ==> gem uninstall rake
  2. Remove your gemfile.lock => rm Gemfile.lock
  3. Remove gem 'rake' on your gemfile
  4. Run bundle install
  5. Install Rake manually : gem install rake --version=10.0.4

这篇关于运行rails时Ruby on Rails错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆