[HELP PLS] uninitialized constant ActiveSupport::Dependencies::Mutex

Hi all,

I’m new to the world of ruby, and am trying to get my first rake set up.
But my rake is failing with the following error message: “uninitialized
constant ActiveSupport::Dependencies::Mutex”

# rake db::setup --trace
(in /var/www/bi)
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' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:55 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support.rb:56 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:18 /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/rails.rb:4:inload’
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/rails.rb:4
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/rails.rb:4:in
each' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/rails.rb:4 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' /var/www/bi/Rakefile:10 /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:inload’
/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:inload_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:inload_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:instandard_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:inload’
/usr/local/bin/rake:19

I’ve tried googling around, but so far, no luck figuring out what’s up.
Am
I missing a dependency of some sort that I am unaware of?

Here is my diagnostic info:

CentOS release 5.5 (Final)
[]# ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
[]# rails -v
Rails 3.0.5
[]# passenger -v
Phusion Passenger version 3.0.4
[]# gem -v
1.6.0

Kevin O. http://www.owocki.com

co-founder & lead developer at ignighter http://www.ignighter.com/


find me on twitter http://www.twitter.com/owocki,
facebookhttp://www.facebook.com/kevinowocki,
linkedin http://www.linkedin.com/in/kevinowocki, and
owocki.comhttp://www.owocki.com/.

see you around teh internets!

I’m having the same error message over here when installing Redmine,
although a quite different setup (see below). Does anybody have a
solution to this problem?

C:\Redmine>rake db:migrate --trace
(in C:/Redmine)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in
`const_missing’

C:/Redmine/vendor/rails/activesupport/lib/active_support/
dependencies.rb:55
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require' C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire’
C:/Redmine/vendor/rails/activesupport/lib/active_support.rb:56
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require' C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire’
C:/Redmine/vendor/rails/railties/lib/tasks/misc.rake:18
C:/Redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in load' C:/Redmine/vendor/rails/railties/lib/tasks/rails.rb:4 C:/Redmine/vendor/rails/railties/lib/tasks/rails.rb:4:ineach’
C:/Redmine/vendor/rails/railties/lib/tasks/rails.rb:4
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require' C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire’
C:/Redmine/Rakefile:10
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
load' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:inraw_load_rakefile’
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in
load_rakefile' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling’
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in
load_rakefile' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:inrun’
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun’
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby187/bin/rake:19:in `load’
C:/Ruby187/bin/rake:19

C:\Redmine>gem list

*** LOCAL GEMS ***

actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
gem_plugin (0.2.3)
i18n (0.4.2)
rack (1.1.1)
rails (2.3.11)
rake (0.8.7)

On Mar 3, 12:01am, Kevin O. [email protected] wrote:

Hi all,

I’m new to the world of ruby, and am trying to get my first rake set up.
But my rake is failing with the following error message: “uninitialized
constant ActiveSupport::Dependencies::Mutex”

Does sticking

require ‘thread’

somewhere like right at the top of environment.rb help at all?

Fred

Hi Fred,

It does not help in my case.

Kevin O. http://www.owocki.com

co-founder & lead developer at ignighter http://www.ignighter.com/


find me on twitter http://www.twitter.com/owocki,
facebookhttp://www.facebook.com/kevinowocki,
linkedin http://www.linkedin.com/in/kevinowocki, and
owocki.comhttp://www.owocki.com/.

see you around teh internets!
On Thu, Mar 3, 2011 at 8:43 AM, Frederick C. <

I am also new to this rails on ruby. Started today and going as per the
documentation. got the same error when I tried rails command. Updated
latest gem, made sure the versions (gem and rails are equal). But the
problem wasn’t gone

But the problem look like disappeared when adding
require ‘thread’
in
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support.rb

For anyone else who had this problem, this is how I solved it:

Make sure ‘activesupport’ is listed when you do ‘gem list’ and make sure
it’s the same version as ‘rails’. All the versions must match (and must
match the RAILS_VERSION in config/environment.rb).

If you need to install a specific version, do

‘gem install activesupport -v 2.3.8’

(change 2.3.8 to required version)

Kevin O. http://www.owocki.com

co-founder & lead developer at ignighter http://www.ignighter.com/


find me on twitter http://www.twitter.com/owocki,
facebookhttp://www.facebook.com/kevinowocki,
linkedin http://www.linkedin.com/in/kevinowocki, and
owocki.comhttp://www.owocki.com/.

see you around teh internets!
On Thu, Mar 3, 2011 at 8:43 AM, Frederick C. <

The problem:
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:55:
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
can be solved by running:

sudo gem update --system 1.4.2

sudo gem update --system 1.4.2
works

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs