rake RUBYARCHDIR=D:/installs/ruby-1.9.2-p0-i386-mingw32/lib/ruby/gems/1.9.1/gems/spork-0.8.4/lib RUBYLIBDIR=D:/installs/ruby-1.9.2-p0-i386-mingw32/lib/ruby/gems/1.9.1/gems/spork-0.8.4/lib
D:/installs/ruby-1.9.2-p0-i386-mingw32/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path’: can’t find executable rake for rake-0.8.7 (Gem::Exception)
from D:/installs/ruby-1.9.2-p0-i386-mingw32/bin/rake:19:in `<main>’
meant “you have installed the rake gem with 1.9.2p0 which had a buggy ‘pre-installed’ rake gem, so delete any rake.gemspec files for now”
D:\installs>rm ruby-1.9.2-p0-i386-mingw32/lib/ruby/gems/1.9.1/specifications/rake.gemspec
Also:
d:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:390:in `bin_path’: can’t find gem rake ([">= 0"]) with executable rake (Gem::GemNotFoundException)
from d:/Ruby192/bin/rake:19:in `<main>’
meant the same thing
ref:
awesome, thanks
Hi,
I fixed this with:
s.default_executable = “rake”
s.executables = ["rake"]
Added to the gemspec. Deleting it did nothing for me.
Interesting. Yeah for me deleting it fixes it for (I think) both windows and Linux. Thanks for the tip.
-r
Thank you so much. I was about to throw the computer through the wall!
I deleted rake.gemspec (two files in my Ruby 1.9.2 installation) and worked well.
Thanks for the solution.
Hi,
I ALSO fixed this with:
s.default_executable = “rake”
s.executables = ["rake"]
Added to the gemspec.
THANK YOU Dan!!! I too was almost ready to pack it in and head for mongral.
MM
Yep… doing the following on Mac OS X Snow leopard worked:
sudo mv /usr/local/lib/ruby/gems/1.9.1/specifications/rake.gemspec /usr/local/lib/ruby/gems/1.9.1/specifications/rake.gemspec.BAK
Thanks,
Deleting the rake.gemspec worked.
Removing it worked. The odd thing was that it worked for the longest time without issues.
Thanks for the post!
+1 for sudo mv /usr/local/lib/ruby/gems/1.9.1/specifications/rake.gemspec /usr/local/lib/ruby/gems/1.9.1/specifications/rake.gemspec.BAK