steelThread / redmon

A web interface for managing redis: cli, admin, and live monitoring
http://steelthread.github.com/redmon/
1.57k stars 127 forks source link

/usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/number_helper.rb:3:in `<module:NumberHelper>': uninitialized constant ActiveSupport::Autoload (NameError) #66

Closed minsoo-jun closed 10 years ago

minsoo-jun commented 10 years ago

redmon -h /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/number_helper.rb:3:in <module:NumberHelper>': uninitialized constant ActiveSupport::Autoload (NameError) from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/number_helper.rb:2:inmodule:ActiveSupport' from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/number_helper.rb:1:in <top (required)>' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:inrequire' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/core_ext/numeric/conversions.rb:2:in<top (required)>' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:inrequire' from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/core_ext/numeric.rb:3:in <top (required)>' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:inrequire' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/core_ext.rb:2:inblock in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/core_ext.rb:1:in each' from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.1.0.beta1/lib/active_support/core_ext.rb:1:in<top (required)>' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in require' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:inrequire' from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/redmon-0.0.8/lib/redmon.rb:2:in <top (required)>' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:inrequire' from /usr/local/rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:in require' from /usr/local/rvm/gems/ruby-1.9.3-p484/gems/redmon-0.0.8/bin/redmon:5:in<top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p484/bin/redmon:23:in load' from /usr/local/rvm/gems/ruby-1.9.3-p484/bin/redmon:23:in

' from /usr/local/rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in eval' from /usr/local/rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in
'

What is problem.. >..< My environment ruby -v ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

gem -v 2.2.2

rails -v Rails 4.0.2

and CentOS release 6.2 (Final)

DimShadoWWW commented 10 years ago

I have this problem too with:

is the output:

Using /usr/local/rvm/gems/ruby-2.1.0
/usr/local/rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0.rc1/lib/active_support/number_helper.rb:3:in `<module:NumberHelper>': uninitialized constant ActiveSupport::Autoload (NameError)
        from /usr/local/rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0.rc1/lib/active_support/number_helper.rb:2:in `<module:ActiveSupport>'
        from /usr/local/rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0.rc1/lib/active_support/number_helper.rb:1:in `<top (required)>'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0.rc1/lib/active_support/core_ext/numeric/conversions.rb:2:in `<top (required)>'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0.rc1/lib/active_support/core_ext/numeric.rb:3:in `<top (required)>'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0.rc1/lib/active_support/core_ext.rb:2:in `block in <top (required)>'
        from /usr/local/rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0.rc1/lib/active_support/core_ext.rb:1:in `each'
        from /usr/local/rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0.rc1/lib/active_support/core_ext.rb:1:in `<top (required)>'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/gems/ruby-2.1.0/gems/redmon-0.0.8/lib/redmon.rb:2:in `<top (required)>'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/rvm/gems/ruby-2.1.0/gems/redmon-0.0.8/bin/redmon:5:in `<top (required)>'
        from /usr/local/rvm/gems/ruby-2.1.0/bin/redmon:23:in `load'
        from /usr/local/rvm/gems/ruby-2.1.0/bin/redmon:23:in `<main>'
        from /usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
        from /usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
DimShadoWWW commented 10 years ago

fixed adding

require 'active_support'
require 'active_support/deprecation'

before

require 'active_support/core_ext'

in lib/redmon.rb

steelThread commented 10 years ago

right on. can you shoot me a PR for this? No worries if not.

DimShadoWWW commented 10 years ago

PR ? I found that problem in https://github.com/nulldb/nulldb/issues/38 , and there was a solution that worked for me

steelThread commented 10 years ago

PR = Pull Request.

DimShadoWWW commented 10 years ago

fixed in #68