This project is archived and is in readonly mode.
edge rails, rubygems, osx
Reported by Alexey Poimtsev | August 8th, 2009 @ 10:26 PM
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?
Comments and changes to this ticket
-
Matt Jones August 10th, 2009 @ 08:29 AM
- 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'
-
nachocab (at gmail) August 19th, 2009 @ 06:16 AM
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
-
Matt Jones August 19th, 2009 @ 07:16 AM
@nachocab - please post a complete stack trace. I've never seen that symbol anywhere in the Rails source.
-
nachocab (at gmail) August 19th, 2009 @ 08:30 AM
Forget previous link, this is the good one: http://rubygems.rubyforge.org/svn/trunk/lib/rubygems.rb
-
José Valim January 18th, 2010 @ 03:39 PM
- State changed from open to invalid
Please open another ticket if you can verify this behavior on Ruby > 1.8.6.
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>