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

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) … 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)

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…

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 (?)

what did you do to get it working?

i ended up following the instructions here:
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.