uninitialized constant ActiveRecord::Base::Redmine
Added by xuefei wei almost 13 years ago
Hello ,everyone,
My name is Wei Xuefei,coming from China ,now I am installing Redmine.Sorry to that lots of troubles flood with me.Search on google,many informations,but fewer is suitable for me.
I follow the guaid of Internet from http://www.cnblogs.com/afarmer/archive/2011/08/06/2129126.html. My OS is WinXP,using wampserver v2.1 to simlified my sever which intgrates :Apache 2.2.17,mysql 5.5.8. Railsinstaller-1.3.0, redmine-1.2.1, later I install rails 2.3.5, rack1.1.1, and i18n_0.4.2 on local ,then creat database.But when I "rake db:migrate",the console presents like follows:
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
uninitialized constant ActiveRecord::Base::Redmine
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/acti
ve_support/dependencies.rb:131:in `const_missing'
C:/Sites/redmine-1.2.1/config/initializers/10-patches.rb:6
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/acti
ve_support/dependencies.rb:173:in `load_without_new_constant_marking'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/acti
ve_support/dependencies.rb:173:in `load'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.
rb:622:in `load_application_initializers'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.
rb:621:in `each'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.
rb:621:in `load_application_initializers'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.
rb:176:in `process'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.
rb:113:in `send'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.
rb:113:in `run'
C:/Sites/redmine-1.2.1/config/environment.rb:20
C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
:in `gem_original_require'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
:in `require'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/acti
ve_support/dependencies.rb:182:in `require'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/acti
ve_support/dependencies.rb:547:in `new_constants_in'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/acti
ve_support/dependencies.rb:182:in `require'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/tasks/misc.r
ake:4
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
`call'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
`each'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`each'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
`invoke_with_call_chain'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:i
n `invoke_task'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:i
n `top_level'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:i
n `each'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:i
n `top_level'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:i
n `standard_exception_handling'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:i
n `top_level'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:i
n `run'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:i
n `standard_exception_handling'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:i
n `run'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/RailsInstaller/Ruby1.8.7/bin/rake:19:in `load'
C:/RailsInstaller/Ruby1.8.7/bin/rake:19
So could someone help me to solve this problem?Is it With any relation with the version of plugin?
Thank you very much for taking this time. Looking forward you!
Best wish!