rake aborated

Hi

I have installed gem install rake on my machine. but when I run command rake

C:\Ruby193\lib\ruby\gems\1.9.1>rake

it gives error message as

rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

(See full trace by running task with --trace)

kindly help me.

Thanks, Rachita

This is normal. You need to run Rake from within the same folder as a Rakefile, as the error indicates.

Make sure that your PATH is set to include the folder where rake lives, so that you can type the command from anywhere (not a fully-qualified path to the executable as you seem to have done here) and it will pick up the current folder as its working environment.

Walter

This is normal. You need to run Rake from within the same folder as a Rakefile, as the error indicates.

Make sure that your PATH is set to include the folder where rake lives, so that you can type the command from anywhere (not a fully-qualified path to the executable as you seem to have done here) and it will pick up the current folder as its working environment.

Walter

Actually, rake will search "upwards" in the directory structure to find a Rakefile (with any of the names indicated) and then the tasks will be executed with the current directory set to where the Rakefile was found.

This allows you to be in a subdirectory of a project and still issue the rake commands. Of course, now that Rails expects you to have ./bin in your PATH, finding the rake executable is a bit more complicated than it used to be.

-Rob