i tried running the following from commands for creating a class Story and instance of class called story in Rails script console. (pg 102/103 from Simply Rails 2 book. P. Lenz) I get the following error: Gem::LoadError: RubyGem version error: rake-compiler(0.6.0 not ~> 0.5.0) I do not see any environment variables or version numbers I can make changes to to get RubyGem upto date. I have tried Gem update Gem update -system gem install closed and reopend the gem console window any suggestions are appreciated. Thanks, Joel -- Posted via http://www.ruby-forum.com/.
Joel Ma
2009-Jul-29 22:25 UTC
Re: LoadError: RubyGem version error: rake-compiler(0.6.0 not
Joel Ma wrote:> i tried running the following from commands for creating a class Story > and instance of class called story in Rails script console. (pg > 102/103 from Simply Rails 2 book. P. Lenz) I get the following error: > > Gem::LoadError: RubyGem version error: rake-compiler(0.6.0 not ~> 0.5.0) > > I do not see any environment variables or version numbers I can make > changes to to get RubyGem upto date. > > I have tried > Gem update > Gem update -system > gem install > closed and reopend the gem console window > > any suggestions are appreciated. > > Thanks, JoelMy work around is "gem uninstall rake-compiler -v 0.6.0" Run: "Gem install rake-compiler" next error is "could not find RubyGem : Hoe" So I run: "Gem install hoe" finally after all that. back to the console window, "ruby script/console" and run the two lines to create a Story class and an instance "class Story < ActiveRecord::Base; end" "story = Story.new" returns> #<Story id: nil, name: nil, link: nil, created_at: nil, updated_at: nil> Whew, this seems like a lot of work to get it to go. -- Posted via http://www.ruby-forum.com/.
helpmehelpyouhelpme
2009-Sep-17 17:36 UTC
Re: LoadError: RubyGem version error: rake-compiler(0.6.0 not
Just ran across this thread. I was having a similar problem with RubyGem version error: rake-compiler(0.6.0 not ~> 0.5.0) and was able to solve the issue by doing this... gem uninstall rake-compiler -v 0.6.0 gem install rake-compiler -v 0.5.0 Hope this helps. ~D Everything On Jul 29, 3:25 pm, Joel Ma <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Joel Ma wrote: > > i tried running the following from commands for creating a class Story > > and instance of class called story in Rails script console. (pg > > 102/103 from Simply Rails 2 book. P. Lenz) I get the following error: > > > Gem::LoadError: RubyGem version error: rake-compiler(0.6.0 not ~> 0.5.0) > > > I do not see any environment variables or version numbers I can make > > changes to to get RubyGem upto date. > > > I have tried > > Gem update > > Gem update -system > > gem install > > closed and reopend the gem console window > > > any suggestions are appreciated. > > > Thanks, Joel > > My work around is "gem uninstall rake-compiler -v 0.6.0" > Run: "Gem install rake-compiler" > > next error is "could not find RubyGem : Hoe" > So I run: "Gem install hoe" > > finally after all that. back to the console window, > "ruby script/console" > and run the two lines to create a Story class and an instance > > "class Story < ActiveRecord::Base; end" > "story = Story.new" > > returns> #<Story id: nil, name: nil, link: nil, created_at: nil, > updated_at: nil> > > Whew, this seems like a lot of work to get it to go. > > -- > Posted viahttp://www.ruby-forum.com/.