`bin_path’: can’t find executable rake for rake-0.8.7 (Gem::Exception)
Well after a long time, I finally had to shift back to ROR development on Windows. I am running on Windows Vista, Rails 3, ruby 1.9.2. Things are not all that bad on windows, or at least, not as much as I thought they might be. But, we definitely keep on facing problems here and there. There is one such which you also might face if you try development on Rails 3 with ruby 1.9.2. There seems to be a bug with the gems that are installed with the one click windows ruby installer. I am not sure why, but you may lead to see the following error message once you start using rake:
`bin_path’: can’t find executable rake for rake-0.8.7 (Gem::Exception)
Now the solution to get away from this bug as of this writing is that you will have to remove the rake.gemspec file from the “your_path_to\Ruby192\lib\ruby\gems\1.9.1\specifications” folder.
And you are good to go now. I do not have really too much time to dig into the matter as to why this might be happening, but it worked for me.

Thanks a TON for this. I’m *not* a Rails developer and was just muddling through some stuff to get a JavaScript build tool working and was scratching my head on why I was getting this error. You totally solved the prob. Thanks.
Thank you very much!
This solved my problem.
Thanks! This was very helpful.
Thanks for your post.
I’m having similar problems.
I’m on W7, Rails 3 and Ruby 1.9.2 with the Ruby Installer. I was tying to install spork to speed up my rspec tests – but read that I’d need to install the Ruby Installer devkit. After doing so, spork still would not compile a gem, but also my rake was broken!
I’m seeing this now:
c:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path’: can’t find executable rake for rake-0.8.7 (Gem::Exception)
from c:/Ruby192/bin/rake:19:in `’
I’ve tried deleting that rake.gemspec file but it makes no difference. Any other suggestions?
Thanks,
Meirion
I am also having this problem. Have you had any luck with it Meirion?
Thanks. Fixed the same problem in OS X too!
Pete
Thanks Sanjeev. Headache gone now.
Thanks, it helps me too.
Good to know that it helped some people….
Good job This method is surprising work now haha
Try this with superuser rights:
$ gem update –system
It can help because “…after a long time…” and rubygems was updated and could not find executable for new not-compatible-with-old-version-of-rubygems rake-gem
just safed my day! Thanks
Thanks!
good post.