2012-02-05 59 views
0

我收到一个错误,试图运行一个应用程序,甚至没有试图做任何复杂的事情,只是让基本的东西运行......只是想知道如果有人可以给我有关于如何调试它的任何指针。我怀疑这可能与RVM gemsets做的,但我不知道......Padrino with RVM gemsets:未初始化的常量ActiveSupport ::弃用

下面是我收到错误消息:

NameError: uninitialized constant ActiveSupport::Deprecation 
~/Developer/.rvm/gems/[email protected]/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing' 
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/deprecation.rb:7:in `deprecate' 
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/synchronization.rb:44:in `<class:Module>' 
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module/synchronization.rb:6:in `<top (required)>' 
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module.rb:8:in `require' 
~/Developer/.rvm/gems/[email protected]_site/gems/activesupport-3.2.1/lib/active_support/core_ext/module.rb:8:in `<top (required)>' 
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-core-0.9.21/lib/padrino-core/support_lite.rb:13:in `require' 
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-core-0.9.21/lib/padrino-core/support_lite.rb:13:in `<top (required)>' 
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-core-0.9.21/lib/padrino-core.rb:2:in `require' 
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-core-0.9.21/lib/padrino-core.rb:2:in `<top (required)>' 
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-0.9.21/lib/padrino.rb:2:in `require' 
~/Developer/.rvm/gems/[email protected]_site/gems/padrino-0.9.21/lib/padrino.rb:2:in `<top (required)>' 
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:68:in `require' 
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:68:in `block (2 levels) in require' 
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:66:in `each' 
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:66:in `block in require' 
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:55:in `each' 
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler/runtime.rb:55:in `require' 
~/Developer/.rvm/gems/[email protected]/gems/bundler-1.1.rc.7/lib/bundler.rb:118:in `require' 
~/Documents/Projects/MarathonSite/config/boot.rb:8:in `<top (required)>' 

我的ActiveSupport在宝石3.2.1上市与我的项目,所以我不完全确定它为什么抱怨。任何关于发生的事情的指针都会被赞赏,所以我可以在将来调试这种事情。

回答

0

看起来是一个宝石冲突。

  1. 更新padrino到最新版本0.10.5(或0.10.6.c)

    创业板安装padrino - 事先

  2. 尝试使用捆绑

    宝石的稳定版本卸载bundler -a;创业板安装捆绑项目,并点

  3. 编辑的Gemfile到padrino 0.10.5或0.10.6.c

+0

感谢,加入Padrino的具体版本号为Gemfile中似乎解决它。出于兴趣,你怎么知道这是一个宝石冲突?究竟发生了什么事情导致了这个错误? – purpletonic 2012-02-06 09:29:19

+0

由于padrino 0.10.5取决于ActiveSupport 3.1,并且您的堆栈跟踪显示3.2。我不知道是什么导致了这个问题,也许是bundler --pre或rvm gemset。 – DAddYE 2012-02-06 13:26:53

相关问题