Hello all, I''m a RoR newbie! I have installed RVM and have Ruby 1.8.7 and 1.9.2 installed. I am following the steps from the book on RailsTutorial.org and have gotten tripped up on the Installing Rails section. I installed Rails using the sudo command as follows: sudo gem install rails --version 3.0.1 It looked like it installed, however when I typed rails -v I got this: Rose-MBP:~ roseemmons$ rails -v /Users/roseemmons/.rvm/gems/ruby-1.9.2-p0@global/specifications/ rake-0.8.7.gemspec:27: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/roseemmons/.rvm/gems/ruby-1.9.2-p0@global/specifications/ rake-0.8.7.gemspec:3:in `new'' from /Users/roseemmons/.rvm/gems/ruby-1.9.2-p0@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 Good Lord, what did I do wrong? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Nov 5, 2010 at 4:44 PM, Mirage2008 <rose.emmons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, I''m a RoR newbie! > > I have installed RVM and have Ruby 1.8.7 and 1.9.2 installed. > > I am following the steps from the book on RailsTutorial.org and have > gotten tripped up on the Installing Rails section. I installed Rails > using the sudo command as follows: > > sudo gem install rails --version 3.0.1 > > It looked like it installed, however when I typed > > rails -v > > I got this: > > Rose-MBP:~ roseemmons$ rails -v > /Users/roseemmons/.rvm/gems/ruby-1.9.2-p0@global/specifications/ > rake-0.8.7.gemspec:27: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/roseemmons/.rvm/gems/ruby-1.9.2-p0@global > /specifications/ > rake-0.8.7.gemspec:3:in `new'' > from /Users/roseemmons/.rvm/gems/ruby-1.9.2-p0@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 > > Good Lord, what did I do wrong? >Try closing and reopening your terminal. If this does not work, restart your computer. I think this should solve for you.> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, David! I restarted my Mac and got the same thing :0( I''m sorry to be such a problem child. I read somewhere that when RVM is installed, one should never use sudo (after I ran the command of couse). Could this have something to do with my ugly, ugly errors? Thank you for your help; it is appreciated! -- Rose On Nov 5, 5:51 pm, David Kahn <d...-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote:> On Fri, Nov 5, 2010 at 4:44 PM, Mirage2008 <rose.emm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello all, I''m a RoR newbie! > > > I have installed RVM and have Ruby 1.8.7 and 1.9.2 installed. > > > I am following the steps from the book on RailsTutorial.org and have > > gotten tripped up on the Installing Rails section. I installed Rails > > using the sudo command as follows: > > > sudo gem install rails --version 3.0.1 > > > It looked like it installed, however when I typed > > > rails -v > > > I got this: > > > Rose-MBP:~ roseemmons$ rails -v > > /Users/roseemmons/.rvm/gems/ruby-1.9.2-p0@global/specifications/ > > rake-0.8.7.gemspec:27: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/roseemmons/.rvm/gems/ruby-1.9.2-p0@global > > /specifications/ > > rake-0.8.7.gemspec:3:in `new'' > > from /Users/roseemmons/.rvm/gems/ruby-1.9.2-p0@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 > > > Good Lord, what did I do wrong? > > Try closing and reopening your terminal. If this does not work, restart your > computer. I think this should solve for you. > > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Also, I am confused further by what I saw on RoR''s website. Do I install rails or update rails? I do have Xcode on my Mac. Thank you again for the help! -- Rose On Nov 5, 5:51 pm, David Kahn <d...-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote:> On Fri, Nov 5, 2010 at 4:44 PM, Mirage2008 <rose.emm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello all, I''m a RoR newbie! > > > I have installed RVM and have Ruby 1.8.7 and 1.9.2 installed. > > > I am following the steps from the book on RailsTutorial.org and have > > gotten tripped up on the Installing Rails section. I installed Rails > > using the sudo command as follows: > > > sudo gem install rails --version 3.0.1 > > > It looked like it installed, however when I typed > > > rails -v > > > I got this: > > > Rose-MBP:~ roseemmons$ rails -v > > /Users/roseemmons/.rvm/gems/ruby-1.9.2-p0@global/specifications/ > > rake-0.8.7.gemspec:27: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/roseemmons/.rvm/gems/ruby-1.9.2-p0@global > > /specifications/ > > rake-0.8.7.gemspec:3:in `new'' > > from /Users/roseemmons/.rvm/gems/ruby-1.9.2-p0@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 > > > Good Lord, what did I do wrong? > > Try closing and reopening your terminal. If this does not work, restart your > computer. I think this should solve for you. > > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
It appear you havent told rvm what ruby to use and you are currently in the system default which does not have the required gems installed, try doing rvm use 1.9.2 then rails -v -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
also could be that you installed rails using sudo, but try checking if everything is ok with rvm first -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
My thanks to you both for all of your help! When I type rails -v in the terminal, now I get: Rails 3.0.1 No where does it state in my tutorial to type rvm use 1.9.2, so the tip was invaluable! Thank you again! On Nov 5, 7:20 pm, radhames brito <rbri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It appear you havent told rvm what ruby to use and you are currently in the > system default which does not have the required gems installed, try doing > > rvm use 1.9.2 > then > > rails -v-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
you need to have xcode 3.2.1 !at least! and only way to install xcode 3.2.1 or higher is to upgrade your mac to Snow Leopard -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.