After upgrading to Ubuntu 11.10 from 11.04 my Rails application does
not
start properly
$ script/server
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:55:
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support.rb:
56
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from /var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:1
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from script/server:3
After upgrading to Ubuntu 11.10 from 11.04 my Rails application does
not
start properly
Are you using rvm to control versions of everything? If not then I
suspect the upgrade to 11.10 has updated some stuff from the
repositories and you now have inconsistent versions. Googling for
your error message suggests that. You might be best to start using
rvm and then you will know you have a consistent set. Since I moved
over to it life has been much easier.
So you installed it from the Ubuntu repository. When you upgraded
ubuntu it probably upgraded rubygems to one that is not compatible
with your version of Rails, as documented in the link I posted.
You could uninstall rubygems and then re-install an appropriate
version manually. I don't know whether you would have to re-install
ruby in rvm. Alternatively I believe that if you change to ruby 1.9
then it includes rubygems. Or you can just stick with what you have
done if it is working for you.