uninitialized constant Rake::DSL

Danie's Avatar


05 Jul, 2011 07:55 PM

So I was restless over the weekend and I decided to install the entire ruby/rails environment on my computer. I followed the process at the link below but I got stuck on the "verify heroku is setup" step. Here's the output from the command prompt. Can you help? I was super excited that I got that far. Basically, it seems like I created a database but I can't migrate it to the test app I created. I'm wondering if it had anything to do with the fact that I had heroku on here before I started downloading all the other stuff. I tried to revert my rake to 0.8.7 but that didnt help either. Let me know your thoughts.


# Rails Environment Configuration.

  user.name:  Danielle Banks
  user.email: [email blocked]
  version:    git version

  bin:        C:/RailsInstaller/Ruby1.8.7/bin/ruby.exe
  version:    ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]

  bin:        C:/RailsInstaller/Ruby1.8.7/bin/rails.bat
  version:    Rails 3.0.7

  public_key_location: C:\Documents and Settings\banksd/.ssh/id_rsa.pub
  public_key_contents: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyH++AOLfm+JgOMYPIG8YR
Q== Danielle Banks 

C:\Sites>cd test_app

C:\Sites\test_app>rails server
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-07-05 13:05:55] INFO  WEBrick 1.3.1
[2011-07-05 13:05:55] INFO  ruby 1.8.7 (2011-02-18) [i386-mingw32]
[2011-07-05 13:05:55] INFO  WEBrick::HTTPServer#start: pid=3404 port=3000

Started GET "/users" for at Tue Jul 05 13:08:23 -0400 2011
  Processing by UsersController#index as HTML
  User Load (31.2ms)  SELECT "users".* FROM "users"
Rendered users/index.html.erb within layouts/application (46.9ms)
Completed 200 OK in 312ms (Views: 93.7ms | ActiveRecord: 31.2ms)
[2011-07-05 13:08:34] INFO  going to shutdown ...
[2011-07-05 13:08:34] INFO  WEBrick::HTTPServer#start done.
Terminate batch job (Y/N)? y

C:\Sites\test_app>heroku create
Creating young-meadow-966... done, stack is bamboo-mri-1.9.2
http://young-meadow-966.heroku.com/ | git@heroku.com:young-meadow-966.git

C:\Sites\test_app>git remote show

C:\Sites\test_app>git push heroku master
Warning: Permanently added the RSA host key for IP address '' to the
 list of known hosts.
Everything up-to-date

C:\Sites\test_app>heroku rake db:migrate
(in /app)
rake aborted!
uninitialized constant Rake::DSL
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2482:in `const_missing'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:8:in `'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:6:in `'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:3:in `'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in `require
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in `'
ake:1:in `require'
ake:1:in `'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:15:in `load'

/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:15:in `block
 in '
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:6:in `each'
/app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:6:in `'
/app/Rakefile:7:in `'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `load'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:1991:in `run'
/usr/ruby1.9.2/bin/rake:31:in `'

  1. Support Staff 1 Posted by Nick Quaranto on 23 Sep, 2011 03:14 PM

    Nick Quaranto's Avatar

    This one was buried in our spam filter, just unearthed it. Sorry.

    I would definitely try the latest version of the RailsInstaller and see if it's fixed. If not, we can point you to the folks at EngineYard that made that project so they can help you.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac