Project

General

Profile

help this problem.. db:migrate

Added by JuHo Kang almost 13 years ago

Hello.

I can't install Redmine 1.3.0 (with MySQL 5.5.20)

MySQL => Code install

OS => CentOS 5.6 (Final)

[root@localhost redmine-1.3.0]# gem list --local

*** LOCAL GEMS ***

actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activeresource (2.3.14)
activesupport (2.3.14)
coderay (1.0.5)
json (1.6.5)
mysql (2.8.1)
rack (1.1.3)
rails (2.3.14)
rake (0.8.7)
rdoc (3.12)
rubytree (0.8.2)

[root@localhost redmine-1.3.0]# gem --version
1.6.2

[root@localhost redmine-1.3.0]# ruby --version
ruby 1.8.7 (2011-12-28 patchlevel 357) [i686-linux]

Error Message is...

[root@localhost redmine-1.3.0]# RAILS_ENV=production rake db:migrate --trace
(in /usr/local/redmine-1.3.0)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Object is not missing constant Issue!
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:118:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:124:in `send'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:124:in `const_missing'
/usr/local/redmine-1.3.0/app/models/project.rb:40
/usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
/usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:184:in `require'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:291:in `require_or_load_without_engine_additions'
/usr/local/redmine-1.3.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:451:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:118:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:463:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:122:in `const_missing'
/usr/local/redmine-1.3.0/app/models/attachment.rb:37
/usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
/usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:184:in `require'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:291:in `require_or_load_without_engine_additions'
/usr/local/redmine-1.3.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:451:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:118:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:463:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:463:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:463:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:463:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
/usr/local/redmine-1.3.0/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable'
/usr/local/redmine-1.3.0/app/models/message.rb:22
/usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
/usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:184:in `require'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:291:in `require_or_load_without_engine_additions'
/usr/local/redmine-1.3.0/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:451:in `load_missing_constant'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:118:in `const_missing'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/inflector.rb:364:in `constantize'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/inflector.rb:363:in `each'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/inflector.rb:363:in `constantize'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
/usr/local/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/observer.rb:157:in `observed_class'
/usr/local/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/observer.rb:183:in `observed_classes'
/usr/local/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/observer.rb:166:in `initialize'
/usr/local/ruby/lib/ruby/1.8/singleton.rb:94:in `new'
/usr/local/ruby/lib/ruby/1.8/singleton.rb:94:in `instance'
/usr/local/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/observer.rb:38:in `instantiate_observers'
/usr/local/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `each'
/usr/local/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `instantiate_observers'
/usr/local/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:15:in `define_dispatcher_callbacks'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `each'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `send'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/callbacks.rb:276:in `run_callbacks'
/usr/local/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `send'
/usr/local/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
/usr/local/redmine-1.3.0/config/../vendor/rails/railties/lib/initializer.rb:631:in `prepare_dispatcher'
/usr/local/redmine-1.3.0/config/../vendor/rails/railties/lib/initializer.rb:185:in `process'
/usr/local/redmine-1.3.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/usr/local/redmine-1.3.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/usr/local/redmine-1.3.0/config/environment.rb:24
/usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/local/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/local/redmine-1.3.0/vendor/rails/railties/lib/tasks/misc.rake:4
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/local/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/local/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/ruby/bin/rake:19:in `load'
/usr/local/ruby/bin/rake:19

How resolve this problem? :(

Thank you.


Replies (2)

RE: help this problem.. db:migrate - Added by hanru liu over 12 years ago

我也遇到过非常类似的问题,不过是在 RedHat 中 MySql 5.0.96
通过
strace -fe open rake db:migrate RAILS_ENV="production" 2>&1 | grep -i mysql

发现在寻找 文件 libmysqlclient.so 时, 找不到

然后安装了
MySQL-shared-5.0.96-1.glibc23.i386.rpm

问题得到解决.

希望我的方法能够给你帮助.

    (1-2/2)