Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

edge rails, rubygems, osx

#3014

hi,
there are strange problem:

4-MBP:cyberberry_id alec$ ruby script/console
./script/../config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:1:in require': no such file to load -- rubygems (LoadError)

from ./script/../config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:1
from ./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:1:in `require'
from ./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:1
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:6:in `require'
from ./script/../config/../vendor/rails/railties/lib/initializer.rb:6
from ./script/../config/boot.rb:45:in `require'
from ./script/../config/boot.rb:45:in `load_initializer'
from ./script/../config/boot.rb:38:in `run'
from ./script/../config/boot.rb:11:in `boot!'
from ./script/../config/boot.rb:110
from script/console:2:in `require'
from script/console:2

on ruby 1.8.6 i've seen message lake this
/Library/Ruby/Site/1.8/rubygems.rb:270:in activate': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array.<br/> The error occurred while evaluating nil.map

How to solve this?

Reported by Alexey Poimtsev · August 8th, 2009 @ 10:26 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Alexey Poimtsev
    Alexey Poimtsev

    upd: edge was updated yesterday

    August 8th, 2009 @ 10:27 PM

  2. Matt Jones
    Matt Jones
    • State changed from new to open

    Something is seriously weird with your Rubygems installation - what version(s) of Ruby do you have installed?

    The following will be really helpful in figuring this out (in no particular order):

    • do you have any other versions of ruby installed?

    • the output of 'which ruby'

    • the content of the #! line in script/console, if not #!/usr/bin/env ruby

    • the output of 'ruby -v'

    August 10th, 2009 @ 08:29 AM

  3. nachocab (at gmail)
    nachocab (at gmail)

    Hi,
    This is happening to me too. I only have ruby 1.8.6 installed in /usr/bin/ruby
    ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]

    The problems seems to be with @loaded_stacks in line 274

    August 19th, 2009 @ 06:16 AM

  4. Matt Jones
    Matt Jones

    @nachocab - please post a complete stack trace. I've never seen that symbol anywhere in the Rails source.

    August 19th, 2009 @ 07:16 AM

  5. nachocab (at gmail)
  6. nachocab (at gmail)
  7. Rizwan Reza
    Rizwan Reza

    This doesn't apply anymore. Rails 3 requires Ruby 1.8.7.

    January 18th, 2010 @ 01:59 PM

  8. José Valim
    José Valim
    • State changed from open to invalid

    Please open another ticket if you can verify this behavior on Ruby > 1.8.6.

    January 18th, 2010 @ 03:39 PM