Rake error: 'rake' is not recognized

百般思念 提交于 2019-12-25 02:24:06

问题


When I write: rake db:migrate

I get this error:

C: \ Rails \ myapp> rake db: migrate
'rake' is not recognized as an internal or external command,
a program or batch file.

I am using rails v. 3.0.9 and gem 'rake', '0.8.7'


回答1:


Make sure rake is in your path.




回答2:


As tob and Brian noted this kind of problem is commonly caused by PATH issues. Basically your PATH tells your computer where to find the commands you want to execute. Try following the steps here making sure that you have an entry for ruby on your path: Ruby on Vista



来源:https://stackoverflow.com/questions/7713986/rake-error-rake-is-not-recognized

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!