运行rails时Ruby on Rails错误 [英] Ruby on rails error when running rails s
本文介绍了运行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
推荐答案
- 删除所有版本的Rake ==> gem卸载rake
- 删除您的
gemfile.lock
=> rm Gemfile.lock - 在您的
gemfile
上删除宝石"rake"
- 运行
bundle install
- 手动安装Rake:
gem install rake --version=10.0.4
- Remove all the versions of Rake ==> gem uninstall rake
- Remove your
gemfile.lock
=> rm Gemfile.lock - Remove gem 'rake' on your
gemfile
- Run
bundle install
- Install Rake manually :
gem install rake --version=10.0.4
这篇关于运行rails时Ruby on Rails错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文