ruby 1.9.2 rake woe

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:

10 thoughts on “ruby 1.9.2 rake woe

  1. Hi,

    I fixed this with:

    s.default_executable = “rake”
    s.executables = ["rake"]

    Added to the gemspec. Deleting it did nothing for me.

  2. I deleted rake.gemspec (two files in my Ruby 1.9.2 installation) and worked well.
    Thanks for the solution.

  3. 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

  4. 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

  5. Removing it worked. The odd thing was that it worked for the longest time without issues.

    Thanks for the post!

Leave a Reply

Your email address will not be published. Required fields are marked *


5 + five =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>