There is a mismatch between the Ruby version returned by 'gem
environment' and ruby --version
Anyone know if this is normal? I don't really know if this is causing
the problem
There is a mismatch between the Ruby version returned by 'gem
environment' and ruby --version
Anyone know if this is normal? I don't really know if this is causing
the problem
It probably is. I'd guess you have two parallel versions of ruby (one
in /usr/lib/ruby, the other probably in /usr/local/lib/ruby). One of
those has rubygems 1.3.1 installed, the other doesn't and you're
trying to run rails in the one that doesn't
did you check your $PATH ? sounds like its calling the wrong executables
You're both right. There was two conflicting versions installed.
Fixing this led to some a chain of reinstallations but it's now fine and
I also got to learn a bunch of new gem commands:)
Thanks for your help in making me realising what the problem was.
I'm getting the exact same error and can confirm I have the same
problem
(multiple versions of ruby and rubygems installed). Could you detail
how you
went about this "chain of reinstallations" to fix this problem? I'm
still
quite new to all this. FYI, I'm using Mac OS X 10.5.6.
I had installed ruby 1.8.7 from MacPorts and was also getting this
error. After downloading RubyGems and running setup.rb, things worked
as expected. I, of course, had to reinstall my gems since the new
RubyGems (/opt/local/bin/gem) keeps its gems in a different spot than
the gem that comes with Leopard (/usr/bin/gem).
All this is a little new to me but this is how I got it to work.
I was having this problem, after reading the insights from this thread,
I realised running "which gem" pointed to a certain directory, and
"which ruby" pointed to a different directory.
I had a local ruby installation, and also a secondary installation under
/sw that I had installed using fink, I just plain removed the
installation fink had put in (fink remove ruby), and after that
everything worked.