alexleao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-01 17:18 UTC
rake db:create --trace -->> rake aborted! uninitialized constant ActiveRecord
Hello Guys, I''m a noob programer, althought I''m an experienced webdesigner... I''m trying to learn RoR, following one of the tutorilas on RoR site. Got some trouble installing lastest MySQL version (Mac OS X 10.4), and did a downgrade to 4.1. Also got trouble with gems... did a downgrade too. When all seems to work fine, I reached the point on tutorial that we need to create the db, on the terminal: rake db:create --trace And I got the following "rake aborted!" error: Alexs-PowerBook:~/MyProject alexleao$ rake db:create --trace (in /Users/alexleao/MyProject) ** Invoke db:create (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:create rake aborted! uninitialized constant ActiveRecord /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:266:in `load_missing_constant'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:453:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:465:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake: 30 /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `call'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `execute'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `each'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `execute'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:369:in `invoke'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `synchronize'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `invoke'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `run'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `each'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `run'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/bin/rake:7 /usr/local/bin/rake:16:in `load'' /usr/local/bin/rake:16 Can someone help me on this?? Thank you very much in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jim Cropcho
2008-Feb-01 18:24 UTC
Re: rake db:create --trace -->> rake aborted! uninitialized constant ActiveRecord
downgrading some stuff but not others can be a sub-optimal strategy. I wonder: do you have activerecord installed? you''re obviously running rails 2.0.2, but why the older rake? (newest is 0.8.1) can you enter irb and type require ''rubygems'' require ''activerecord'' and not get an error? On Feb 1, 12:18 pm, "alexl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <alexl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello Guys, > > I''m a noob programer, althought I''m an experienced webdesigner... I''m > trying to learn RoR, following one of the tutorilas on RoR site. > > Got some trouble installing lastest MySQL version (Mac OS X 10.4), and > did a downgrade to 4.1. > > Also got trouble with gems... did a downgrade too. > > When all seems to work fine, I reached the point on tutorial that we > need to create the db, on the terminal: > > rake db:create --trace > > And I got the following "rake aborted!" error: > > Alexs-PowerBook:~/MyProject alexleao$ rake db:create --trace > (in /Users/alexleao/MyProject) > ** Invoke db:create (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute db:create > rake aborted! > uninitialized constant ActiveRecord > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:266:in `load_missing_constant'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:453:in `const_missing'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:465:in `const_missing'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake: > 30 > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `call'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in > `execute'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `each'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in > `execute'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:369:in > `invoke'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in > `synchronize'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in > `invoke'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `run'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in > `each'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `run'' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/bin/rake:7 > /usr/local/bin/rake:16:in `load'' > /usr/local/bin/rake:16 > > Can someone help me on this?? > > Thank you very much in advance!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---