Skip to content

Instantly share code, notes, and snippets.

@cw4d3
Created February 22, 2011 02:14
Show Gist options
  • Select an option

  • Save cw4d3/838101 to your computer and use it in GitHub Desktop.

Select an option

Save cw4d3/838101 to your computer and use it in GitHub Desktop.
my rake is broken!
:~/Desktop/grigio-rails3-ujs-demo-eb6cb9b :: rake db:migrate
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:370:in `bin_path': can't find gem rake ([">= 0"]) with executable rake (Gem::GemNotFoundException)
from /usr/local/bin/rake:19:in `<main>'
:~/Desktop/grigio-rails3-ujs-demo-eb6cb9b :: which rake
/usr/local/bin/rake
#Listed as a LOCAL GEM: rake (0.8.7)
#########################################
FIXED by editing my 'rake.gemspec' file as shown below:
# rake.gemspec remains just for compatibility with installation
# before Ruby 1.9.2-p32.
# This file will no longer exist in Ruby 1.9.3.
# Refer rake-0.8.7.gemspec instead.
Gem::Specification.new do |s|
s.name = "rake"
s.version = "0.8.7"
s.summary = "This rake is bundled with Ruby"
s.default_executable = “rake”
s.executables = ["rake"]
end
#################
Also, worth mentioning that some people have had luck with deleting the rake.gemspec file altogether
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment