# Missing the Rails 2.0.2 gem (Leopard) .. but it's there!

**URL:** <https://www.ruby-forum.com/t/missing-the-rails-2-0-2-gem-leopard-but-its-there/131406>\
**Category:** Rails\
**Created:** [March 9, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/missing-the-rails-2-0-2-gem-leopard-but-its-there/131406 "2008-03-09T15:35:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Post date:** [March 9, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/missing-the-rails-2-0-2-gem-leopard-but-its-there/131406/1 "2008-03-09T15:35:29Z")

</div>

Hello

I am trying to test my first rails app example under Leopard (using  
XCode as stated on Apple site  
([http://developer.apple.com/tools/developonrailsleopard.html](http://developer.apple.com/tools/developonrailsleopard.html)) … i  
have been using Rails for a while under Tiger, it seems there is a  
mess in all Rails libs… why this mess ? what should I get rid off ?

I get the following error in the Debugger…

* * *

Missing the Rails 2.0.2 gem. Please `gem install -v=2.0.2 rails`,  
update your …

BUT

yves$ rails -v  
Rails 2.0.2

yves$ gem list

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.0.2, 1.3.5, 1.3.3)  
actionpack (2.0.2, 1.13.5, 1.13.3)  
actionwebservice (1.2.6, 1.2.5, 1.2.3)  
activerecord (2.0.2, 1.15.5, 1.15.3)  
activeresource (2.0.2)  
activesupport (2.0.2, 1.4.4, 1.4.2)  
ambition (0.5.2, 0.2.2)  
capistrano (2.2.0, 2.0.0)  
cgi\_multipart\_eof\_fix (2.5.0, 2.3)  
daemons (1.0.9, 1.0.7)  
fastthread (1.0.1, 1.0)  
gem\_plugin (0.2.3, 0.2.2)  
highline (1.4.0)  
hoe (1.5.1, 1.3.0)  
mongrel (1.1.4, 1.0.1)  
mysql (2.7)  
needle (1.3.0)  
net-sftp (1.1.1, 1.1.0)  
net-ssh (1.1.2)  
ParseTree (2.1.1, 2.0.1)  
rails (2.0.2, 1.2.3)  
rake (0.8.1, 0.7.3)  
ruby-debug (0.10.0, 0.9.3)  
ruby-debug-base (0.10.0, 0.9.3)  
rubyforge (0.4.4)  
rubygems-update (1.0.1)  
RubyInline (3.6.6, 3.6.4)  
sources (0.0.1)  
sqlite3-ruby (1.2.1)  
termios (0.9.4)

---

<div class="post-metadata">

**Author:** ![Erwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Post date:** [March 9, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/missing-the-rails-2-0-2-gem-leopard-but-its-there/131406/2 "2008-03-09T15:44:07Z")

</div>

Erwin wrote:

> I get the following error in the Debugger…
> 
> * * *
> 
> Missing the Rails 2.0.2 gem. Please `gem install -v=2.0.2 rails`,  
> update your …
> 
> BUT
> 
> yves$ rails -v  
> Rails 2.0.2

Is this rails the one in /usr/bin? XCode will use that one by default.  
In a terminal window, run:

type rails

to see. If you are using Locomotive and have upgraded that to Rails  
2.0.2 then XCode won’t see it. In that case, in your terminal:

export PATH=/usr/bin:$PATH

and run the commands in the tutorial again to update RubyGems and  
Rails…

---

<div class="post-metadata">

**Author:** ![Erwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Post date:** [March 9, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/missing-the-rails-2-0-2-gem-leopard-but-its-there/131406/3 "2008-03-09T18:16:05Z")

</div>

thanks  
I believe it’s not , so XCode is not using the right one…

yves$ type rails  
rails is hashed (/usr/local/bin/rails)

so I updated usr/local/bin/rails (the one I was using with Tiger) and  
XCode was using usr/bin/rails…  
got it … up and running fine now

can I get rid off usr/local/bin/rails ??? I think so (?)

---

<div class="post-metadata">

**Author:** ![Erwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Post date:** [March 27, 2008, 8:09am UTC](https://www.ruby-forum.com/t/missing-the-rails-2-0-2-gem-leopard-but-its-there/131406/4 "2008-03-27T08:09:19Z")

</div>

what did you do to get it working?

i ended up following the instructions here:  
[http://discussions.apple.com/thread.jspa?messageID=6893327](http://discussions.apple.com/thread.jspa?messageID=6893327) in order to  
update the version that xcode is using, but i’d like to have xcode  
point to /usr/local/bin/rails instead of /usr/bin/rails.
