首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用RVM gemsets的Padrino : uninitialized constant ActiveSupport::Deprecation

使用RVM gemsets的Padrino : uninitialized constant ActiveSupport::Deprecation
EN

Stack Overflow用户
提问于 2012-02-06 07:06:53
回答 1查看 1.6K关注 0票数 0

我在尝试运行应用程序时遇到错误,甚至没有尝试做任何复杂的事情,只是让基本的东西运行……只是想知道是否有人可以给我任何关于如何调试它的指点。我怀疑这可能与RVM gemsets有关,但我不确定...

下面是我收到的错误消息:

代码语言:javascript
复制
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,所以我不完全确定它为什么会抱怨。任何关于正在发生的事情的提示都将不胜感激,这样我就可以在将来调试这类东西。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-02-06 08:05:15

看起来像是宝石碰撞了。

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

gem install padrino --pre

  • 尝试使用bundler的稳定版本

gem卸载bundler -a;gem安装bundler

  • 编辑项目的gem文件,然后指向padrino 0.10.5或0.10.6.c
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9153948

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档