Kevin Owocki
2011-Mar-03 00:01 UTC
[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:in `gem_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:in `gem_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:in `load'' /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:in `gem_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: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 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 Owocki <http://www.owocki.com> co-founder & lead developer at ignighter <http://www.ignighter.com/> _________________________________________ find me on twitter <http://www.twitter.com/owocki>, facebook<http://www.facebook.com/kevinowocki>, linkedin <http://www.linkedin.com/in/kevinowocki>, and owocki.com<http://www.owocki.com/>. see you around teh internets! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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:in `require'' 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:in `require'' 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:in `each'' 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:in `require'' 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:in `raw_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:in `standard_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:in `run'' 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:in `run'' 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, 1:01 am, Kevin Owocki <ksowo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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" > > *# 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/de pendencies.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'' > /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:in > `gem_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:in `load'' > /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:in > `gem_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: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 > > 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 Owocki <http://www.owocki.com> > > co-founder & lead developer at ignighter <http://www.ignighter.com/> > > _________________________________________ > > find me on twitter <http://www.twitter.com/owocki>, > facebook<http://www.facebook.com/kevinowocki>, > linkedin <http://www.linkedin.com/in/kevinowocki>, and > owocki.com<http://www.owocki.com/>. > > see you around teh internets!-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Mar-03 13:43 UTC
Re: uninitialized constant ActiveSupport::Dependencies::Mutex
On Mar 3, 12:01 am, Kevin Owocki <ksowo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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> *# 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/de pendencies.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'' > /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:in > `gem_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:in `load'' > /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:in > `gem_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: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 > > 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 Owocki <http://www.owocki.com> > > co-founder & lead developer at ignighter <http://www.ignighter.com/> > > _________________________________________ > > find me on twitter <http://www.twitter.com/owocki>, > facebook<http://www.facebook.com/kevinowocki>, > linkedin <http://www.linkedin.com/in/kevinowocki>, and > owocki.com<http://www.owocki.com/>. > > see you around teh internets!-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Kevin Owocki
2011-Mar-03 14:18 UTC
Re: Re: uninitialized constant ActiveSupport::Dependencies::Mutex
Hi Fred, It does not help in my case. Kevin Owocki <http://www.owocki.com> co-founder & lead developer at ignighter <http://www.ignighter.com/> _________________________________________ find me on twitter <http://www.twitter.com/owocki>, facebook<http://www.facebook.com/kevinowocki>, linkedin <http://www.linkedin.com/in/kevinowocki>, and owocki.com<http://www.owocki.com/>. see you around teh internets! On Thu, Mar 3, 2011 at 8:43 AM, Frederick Cheung < frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Mar 3, 12:01 am, Kevin Owocki <ksowo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 > > *# 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/de > pendencies.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'' > > > /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:in > > `gem_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:in > `load'' > > /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:in > > `gem_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: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 > > > > 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 Owocki <http://www.owocki.com> > > > > co-founder & lead developer at ignighter <http://www.ignighter.com/> > > > > _________________________________________ > > > > find me on twitter <http://www.twitter.com/owocki>, > > facebook<http://www.facebook.com/kevinowocki>, > > linkedin <http://www.linkedin.com/in/kevinowocki>, and > > owocki.com<http://www.owocki.com/>. > > > > see you around teh internets! > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Kevin Owocki
2011-Mar-03 18:05 UTC
Re: Re: uninitialized constant ActiveSupport::Dependencies::Mutex
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 Owocki <http://www.owocki.com> co-founder & lead developer at ignighter <http://www.ignighter.com/> _________________________________________ find me on twitter <http://www.twitter.com/owocki>, facebook<http://www.facebook.com/kevinowocki>, linkedin <http://www.linkedin.com/in/kevinowocki>, and owocki.com<http://www.owocki.com/>. see you around teh internets! On Thu, Mar 3, 2011 at 8:43 AM, Frederick Cheung < frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Mar 3, 12:01 am, Kevin Owocki <ksowo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 > > *# 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/de > pendencies.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'' > > > /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:in > > `gem_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:in > `load'' > > /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:in > > `gem_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: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 > > > > 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 Owocki <http://www.owocki.com> > > > > co-founder & lead developer at ignighter <http://www.ignighter.com/> > > > > _________________________________________ > > > > find me on twitter <http://www.twitter.com/owocki>, > > facebook<http://www.facebook.com/kevinowocki>, > > linkedin <http://www.linkedin.com/in/kevinowocki>, and > > owocki.com<http://www.owocki.com/>. > > > > see you around teh internets! > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Sukumaran Ammangod
2011-Mar-04 16:09 UTC
Re: [HELP PLS] uninitialized constant ActiveSupport::Dependencies::Mutex
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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Todd Fox
2011-Apr-05 11:41 UTC
Re: [HELP PLS] uninitialized constant ActiveSupport::Dependencies::Mutex
sudo gem update --system 1.4.2 works -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jesus T.
2011-Jul-20 17:33 UTC
Re: [HELP PLS] uninitialized constant ActiveSupport::Dependencies::Mutex
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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.