From: Phillip Gawlowski Date: 2011-01-08T01:21:11+09:00 Subject: Re: Help with RubyGems On Fri, Jan 7, 2011 at 5:09 PM, Institute For human continuity wrote: > I am new to Ruby and programming, so please bear with me. > > I installed RubyGems 1.4 and when I tried some commands in IRB, it did > not work. > > When I input "gem query", it returns: > > "NameError: undefined local variable or method 'query' for main:Object" > > What am I doing wrong? Did you install RubyGems with Ruby 1.9 (ruby -v)? If so, it's probably best to just reinstall (from scratch) at this point, especially if it is a fresh install. -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.