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.

uninitialized constant Gem::VERSION (NameError) on new install

#6443

Hello all,
I am working on the ruby on rails tutorial Learn Rails by Example by Michael Hartl. I installed ruby with RVM per the instructions and I am receiving errors. The last step for installation verification was verifying the version of rails. Searching through google has not produced any results. I need your help.
Mac - Leopard
RVM
Rails 3.0.4
Ruby 1.9.2-p136

cpe-70-124-54-45:~ quincy$ rails -v
/Users/quincy/.rvm/gems/ruby-1.9.2-p136@global/specifications/rake-0.8.7.gemspec:26:in load_specification': uninitialized constant Gem::VERSION (NameError)

from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/specification.rb:540:in `initialize'
from /Users/quincy/.rvm/gems/ruby-1.9.2-p136@global/specifications/rake-0.8.7.gemspec:3:in `new'
from /Users/quincy/.rvm/gems/ruby-1.9.2-p136@global/specifications/rake-0.8.7.gemspec:3:in `load_specification'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/source_index.rb:86:in `load_specification'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/source_index.rb:122:in `load_gems_in'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/source_index.rb:121:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/source_index.rb:121:in `load_gems_in'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/source_index.rb:75:in `from_gems_in'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/source_index.rb:47:in `from_installed_gems'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:141:in `source_index'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:310:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:65:in `active_gem_with_options'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:50:in `gem'
from /usr/bin/rails:18

Reported by centraltex · February 17th, 2011 @ 06:36 AM

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

Activity

  1. centraltex
    centraltex

    found the fix on another forum
    apparently the tutorial doesn't give one command that is necessary

    rvm use 1.9.2

    February 22nd, 2011 @ 05:22 AM

  2. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to invalid
    • Importance changed from to Low

    February 22nd, 2011 @ 12:55 PM