# LoadError: RubyGem version error: rake-compiler(0.6.0 not

**URL:** <https://www.ruby-forum.com/t/loaderror-rubygem-version-error-rake-compiler-0-6-0-not/172921>\
**Category:** Rails\
**Created:** [July 29, 2009, 11:57pm UTC](https://www.ruby-forum.com/t/loaderror-rubygem-version-error-rake-compiler-0-6-0-not/172921 "2009-07-29T23:57:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmail137](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@jmail137](https://www.ruby-forum.com/u/jmail137)\
**Post date:** [July 29, 2009, 11:57pm UTC](https://www.ruby-forum.com/t/loaderror-rubygem-version-error-rake-compiler-0-6-0-not/172921/1 "2009-07-29T23:57:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jmail137](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@jmail137](https://www.ruby-forum.com/u/jmail137)\
**Post date:** [July 30, 2009, 12:25am UTC](https://www.ruby-forum.com/t/loaderror-rubygem-version-error-rake-compiler-0-6-0-not/172921/2 "2009-07-30T00:25:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jmail137](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@jmail137](https://www.ruby-forum.com/u/jmail137)\
**Post date:** [September 17, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/loaderror-rubygem-version-error-rake-compiler-0-6-0-not/172921/3 "2009-09-17T20:08:19Z")

</div>

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
