问题
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