我在尝试运行应用程序时遇到错误,甚至没有尝试做任何复杂的事情,只是让基本的东西运行……只是想知道是否有人可以给我任何关于如何调试它的指点。我怀疑这可能与RVM gemsets有关,但我不确定...
下面是我收到的错误消息:
NameError: uninitialized constant ActiveSupport::Deprecation
~/Developer/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/deprecation.rb:7:in `deprecate'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/synchronization.rb:44:in `<class:Module>'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/synchronization.rb:6:in `<top (required)>'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module.rb:8:in `require'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module.rb:8:in `<top (required)>'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/padrino-core-0.9.21/lib/padrino-core/support_lite.rb:13:in `require'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/padrino-core-0.9.21/lib/padrino-core/support_lite.rb:13:in `<top (required)>'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/padrino-core-0.9.21/lib/padrino-core.rb:2:in `require'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/padrino-core-0.9.21/lib/padrino-core.rb:2:in `<top (required)>'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/padrino-0.9.21/lib/padrino.rb:2:in `require'
~/Developer/.rvm/gems/ruby-1.9.3-p0@marathon_site/gems/padrino-0.9.21/lib/padrino.rb:2:in `<top (required)>'
~/Developer/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:68:in `require'
~/Developer/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
~/Developer/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:66:in `each'
~/Developer/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:66:in `block in require'
~/Developer/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:55:in `each'
~/Developer/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:55:in `require'
~/Developer/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc.7/lib/bundler.rb:118:in `require'
~/Documents/Projects/MarathonSite/config/boot.rb:8:in `<top (required)>'我在我的项目的gemset中列出了activesupport3.2.1,所以我不完全确定它为什么会抱怨。任何关于正在发生的事情的提示都将不胜感激,这样我就可以在将来调试这类东西。
发布于 2012-02-06 08:05:15
看起来像是宝石碰撞了。
gem install padrino --pre
gem卸载bundler -a;gem安装bundler
https://stackoverflow.com/questions/9153948
复制相似问题