Project

General

Profile

rake aborted error during rake_senerate_session_store

Added by Matthew Rupert over 13 years ago

I am trying to install Redmine on Redhat and not getting very far (yet). When I attempt

rake generate_session_store

rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
/opt/redmine-1.1.2/Rakefile:10
(See full trace by running task with --trace)
/opt/redmine/config>

I am using the most current version from the repo with rack 1.1.0. Any ideas? Thanks!


Replies (4)

RE: rake aborted error during rake_senerate_session_store - Added by Matthew Rupert over 13 years ago

Also, this might help:

(in /opt/redmine-1.1.2)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
/opt/redmine-1.1.2/vendor/rails/activesupport/lib/active_support/dependencies.rb:55
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/opt/redmine-1.1.2/vendor/rails/activesupport/lib/active_support.rb:56
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/opt/redmine-1.1.2/vendor/rails/railties/lib/tasks/misc.rake:18
/opt/redmine-1.1.2/vendor/rails/railties/lib/tasks/rails.rb:4:in `load'
/opt/redmine-1.1.2/vendor/rails/railties/lib/tasks/rails.rb:4
/opt/redmine-1.1.2/vendor/rails/railties/lib/tasks/rails.rb:4:in `each'
/opt/redmine-1.1.2/vendor/rails/railties/lib/tasks/rails.rb:4
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/opt/redmine-1.1.2/Rakefile:10
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19

RE: rake aborted error during rake_senerate_session_store - Added by Matthew Rupert over 13 years ago

SOLVED:

As some of you might have already been aware, Redmine requires rubygems 1.3.1 - 1.5.x (I think). I was on 1.6.1. I reverted to rubygems 1.3.7.

RE: rake aborted error during rake_senerate_session_store - Added by Anonymous over 13 years ago

RubyGems 1.6.x is incompatible with the bundled rails 2.3.5. It's documented in the RubyGems release notes that "RubyGems no longer requires 'thread'. Rails < 3 will need to add require 'thread' to their applications." so i've added "require 'thread'" to the Rakefile (patch attached).

http://blog.segment7.net/2011/03/01/rubygems-1-6-0

patch-Rakefile (256 Bytes) patch-Rakefile Rakefile patch for RubyGems 1.6.x

RE: rake aborted error during rake_senerate_session_store - Added by Georg Leciejewski over 13 years ago

Yes this works but it should be better off in boot.rb since this is always loaded.

#boot.rb
require 'thread'
    (1-4/4)