Skip to content

Instantly share code, notes, and snippets.

@rdp
Created August 11, 2010 20:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdp/519744 to your computer and use it in GitHub Desktop.
Save rdp/519744 to your computer and use it in GitHub Desktop.
rake fails until you delete the original .gemspec file
C:\installs\trunk3_installed>cd bin
C:\installs\trunk3_installed\bin>rake -T
C:/installs/trunk3_installed/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:/installs/trunk3_installed/bin/rake:19:in `<main>'
C:\installs\trunk3_installed\bin>cd ..
C:\installs\trunk3_installed>cat ./lib/ruby/gems/1.9.1/specifications/rake.gemspec
Gem::Specification.new do |s|
s.name = "rake"
s.version = "0.8.7"
s.summary = "This rake is bundled with Ruby"
end
C:\installs\trunk3_installed>rm ./lib/ruby/gems/1.9.1/specifications/rake.gemspec
C:\installs\trunk3_installed>cd bin
C:\installs\trunk3_installed\bin>rake -T
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/installs/trunk3_installed/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile'
(See full trace by running task with --trace)
@rapcal
Copy link

rapcal commented Mar 2, 2011

Thanks! Fixed spork gem installation for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment