This project is archived and is in readonly mode.

#2706 ✓resolved
Conrad Taylor

Cannot require "activesupport" in ruby 1.9.1 irb

Reported by Conrad Taylor | May 24th, 2009 @ 04:39 AM | in 2.x

Hi, I'm getting the following error message within irb when I attempt to require activesupport:

BEGIN ERROR MESSAGE:

irb(main):001:0> require "activesupport"
NoMethodError: undefined method <=>' for nil:NilClass<br/>

from <internal:gem_prelude>:249:in `push_gem_version_on_load_path'
from <internal:gem_prelude>:14:in `gem'
from /opt/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/vendor.rb:12:in `<top (required)>'
from /opt/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support.rb:54:in `require'
from /opt/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support.rb:54:in `<top (required)>'
from /opt/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/activesupport.rb:1:in `require'
from /opt/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/activesupport.rb:1:in `<top (required)>'
from (irb):1:in `require'
from (irb):1
from /opt/local/bin/irb:12:in `<main>'

END ERROR MESSAGE:

Comments and changes to this ticket

  • Jeremy Kemper

    Jeremy Kemper May 24th, 2009 @ 05:52 AM

    • State changed from “new” to “resolved”

    1.9 bug. Upgrade to the latest patchlevel for a fix.

  • Conrad Taylor

    Conrad Taylor May 24th, 2009 @ 07:26 AM

    How does one upgrade to the latest patchlevel?

  • Conrad Taylor

    Conrad Taylor May 24th, 2009 @ 07:36 AM

    Jeremy, I understand what you're talking about now.

  • enpaq

    enpaq June 22nd, 2009 @ 06:41 AM

    • Assigned user set to “Jeremy Kemper”

    Hi, I'm getting the following error message within irb when I attempt to require activesupport I am using ruby 1.9.1p0

    /usr/local/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/watir/browser.rb:75:in eval': undefined method<=>' for nil:NilClass (NoMethodError)

        from <internal:gem_prelude>:14:in `gem'
        from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/vendor.rb:12:in `<top (required)>'
        from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support.rb:54:in `require'
        from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support.rb:54:in `<top (required)>'
        from /usr/local/lib/ruby/gems/1.9.1/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:1:in `require'
        from /usr/local/lib/ruby/gems/1.9.1/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:1:in `<top (required)>'
        from /usr/local/lib/ruby/gems/1.9.1/gems/firewatir-1.6.2/lib/firewatir.rb:41:in `require'
        from /usr/local/lib/ruby/gems/1.9.1/gems/firewatir-1.6.2/lib/firewatir.rb:41:in `<top (required)>'
        from (eval):1:in `klass'
        from /usr/local/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/watir/browser.rb:75:in `eval'
        from /usr/local/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/watir/browser.rb:75:in `klass'
        from /usr/local/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/watir/browser.rb:65:in `new'
        from 1.rb:8:in `<main>'
    
  • Jeremy Kemper

    Jeremy Kemper June 22nd, 2009 @ 06:50 AM

    enpaq, as mentioned above, upgrade Ruby.

  • Conrad Taylor

    Conrad Taylor June 22nd, 2009 @ 08:32 AM

    Jeremy, you can close this ticket because the issue has been resolved.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages