# Need help installing Gems package (Newbie question)

**URL:** <https://www.ruby-forum.com/t/need-help-installing-gems-package-newbie-question/137290>\
**Category:** Rails\
**Created:** [May 11, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/need-help-installing-gems-package-newbie-question/137290 "2008-05-11T13:59:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dangermoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e79b87/32.png) [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Post date:** [May 11, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/need-help-installing-gems-package-newbie-question/137290/1 "2008-05-11T13:59:12Z")

</div>

When I run the rake command (rake db:migrate) and run it, I get this  
error message. (I’m currently running Rails 2.0.2)

Missing the Rails 2.0.2 gem. Please `gem install -v=2.0.2 rails`,  
update your RAILS\_GEM\_VERSION setting in config/environment.rb for the  
Rails version you do have installed, or comment out RAILS\_GEM\_VERSION  
to use the latest version installed.

What do I need to do, and how do I do it? I’m fairly new to command-  
line commands, so please be detailed.

Thank you.

---

<div class="post-metadata">

**Author:** ![dangermoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e79b87/32.png) [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Post date:** [May 11, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/need-help-installing-gems-package-newbie-question/137290/2 "2008-05-11T15:45:06Z")

</div>

Hi,

What operating system are you using?

either way, you ought to be able to go into a command line and type

rails -v

to get the version back… let us know what this tells you. It seems  
to be complaining that you don’t actually have the version you think  
you have installed.

Julian

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)  
VIDEO #4 parts a and b now available!  
[http://sensei.zenunit.com/](http://sensei.zenunit.com/)

---

<div class="post-metadata">

**Author:** ![dangermoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e79b87/32.png) [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Post date:** [May 11, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/need-help-installing-gems-package-newbie-question/137290/3 "2008-05-11T16:39:08Z")

</div>

I’m running Mac OS 10.5.2. Leopard and Rails 2.0.2.

I thought that these were the most current versions so I was surprised  
that I had this problem with GEM.
