Having trouble installing redmine 1.0.1 on CentOS 5
Added by Yungwei Chen almost 14 years ago
Hi,
I am trying to install redmine 1.0.1 on CentOS 5, which will connect to another machine running a mysql server.
Here's list of things I did besides downloading and extracting redmine 1.0.1.
1. Installed the following packages from CentOS testing repo:
ruby-libs-1.8.6.383-6.el5.kb
ruby-irb-1.8.6.383-6.el5.kb
ruby-devel-1.8.6.383-6.el5.kb
rubygems-1.3.1-1.el5
ruby-1.8.6.383-6.el5.kb
ruby-rdoc-1.8.6.383-6.el5.kb
According to the redmine wiki, "Official releases include the appropriate Rails version in their vendor directory. So no particular action is needed." So I'm assuming other required gems are taken care of. Is this correct?
3. Running "RAILS_ENV=production rake db:migrate --trace" shows the following error:
(in /opt/redmine-1.0.1)
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
Object is not missing constant Issue!
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:417:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:98:in `send'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:98:in `const_missing'
/opt/redmine-1.0.1/app/models/project.rb:35
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions'
/opt/redmine-1.0.1/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in `const_missing'
/opt/redmine-1.0.1/app/models/attachment.rb:36
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions'
/opt/redmine-1.0.1/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/redmine-1.0.1/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable'
/opt/redmine-1.0.1/app/models/message.rb:22
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions'
/opt/redmine-1.0.1/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/inflector.rb:361:in `constantize'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `each'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `constantize'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
/opt/redmine-1.0.1/vendor/rails/activerecord/lib/active_record/observer.rb:157:in `observed_class'
/opt/redmine-1.0.1/vendor/rails/activerecord/lib/active_record/observer.rb:183:in `observed_classes'
/opt/redmine-1.0.1/vendor/rails/activerecord/lib/active_record/observer.rb:166:in `initialize'
/usr/lib/ruby/1.8/singleton.rb:94:in `new'
/usr/lib/ruby/1.8/singleton.rb:94:in `instance'
/opt/redmine-1.0.1/vendor/rails/activerecord/lib/active_record/observer.rb:38:in `instantiate_observers'
/opt/redmine-1.0.1/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `each'
/opt/redmine-1.0.1/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `instantiate_observers'
/opt/redmine-1.0.1/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:15:in `define_dispatcher_callbacks'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `each'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `send'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/callbacks.rb:276:in `run_callbacks'
/opt/redmine-1.0.1/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `send'
/opt/redmine-1.0.1/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
/opt/redmine-1.0.1/config/../vendor/rails/railties/lib/initializer.rb:631:in `prepare_dispatcher'
/opt/redmine-1.0.1/config/../vendor/rails/railties/lib/initializer.rb:185:in `process'
/opt/redmine-1.0.1/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/opt/redmine-1.0.1/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/opt/redmine-1.0.1/config/environment.rb:20
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/opt/redmine-1.0.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/opt/redmine-1.0.1/vendor/rails/railties/lib/tasks/misc.rake:4
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
What am I missing here? Thanks.
Replies (4)
RE: Having trouble installing redmine 1.0.1 on CentOS 5
-
Added by Toshi MARUYAMA almost 14 years ago
Yungwei Chen wrote:
2. Installed the following gems from files.
- rake-0.8.7.gem
- rack-1.0.1.gem
- mysql-2.8.1-x86-mingw32.gem
mingw32 is for Windows.
RE: Having trouble installing redmine 1.0.1 on CentOS 5
-
Added by Felix Schäfer almost 14 years ago
You need to install the correct mysql gem for centos, even if you connect to a mysql server on windows. Just gem install mysql
, you will probably need some form of mysql-libs-devel package or similar for that.
RE: Having trouble installing redmine 1.0.1 on CentOS 5
-
Added by Yungwei Chen almost 14 years ago
If I have to use .gem files, which version should I choose?
RE: Having trouble installing redmine 1.0.1 on CentOS 5
-
Added by Felix Schäfer almost 14 years ago
The last?