$ spec spec/models/my_spec.rb
Rails requires RubyGems >= 0.9.4 (you have 0.9.3). Please `gem
update
--system` and try again.
Please try to doing the following:
sudo gem update --system
Have a look at my original post - already did that to no effect.
Do you have 2 ruby install? (ie one with an up to date rubygems and
then another one)? Do which gem and which spec report that they are in
the same place?
Good suggestion, but that didn't work either. Here's what I did:
503 sudo gem clean -V | tee gem_clean.txt
504 gem list
505 cd code/trunk/
506 svn up
507 svn info .
508 ls
509 spec ./spec/models/targeting_condition_spec.rb (failed)
510 sudo gem update --system
511 spec ./spec/models/targeting_condition_spec.rb (failed again)
512 gem list RubyGems (shows rubygems-update (1.2.0))
513 gem update rubygems-update
514 spec ./spec/models/targeting_condition_spec.rb (failed again)
Every time the error is "Rails requires RubyGems >= 0.9.4 (you have
0.9.3). Please `gem update --system` and try again."
I just did notice something. The gem_clean.txt (output from the gem
clean command) has a lot of these errors in it:
Attempting to uninstall net-ssh-1.1.2
Unable to uninstall net-ssh-1.1.2:
Gem::GemNotInHomeException: Gem is not installed in directory /
Library/Ruby/Gems/1.8
Maybe this means that the gem database is munged? Do I have to wipe
out every gem and install from scratch (argh)?
Looks to me that gem is installing the right version in /Library/Ruby/
Gems/1.8, but spec is looking at /usr/local/lib/ruby/gems/1.8. Should
i just blast /usr/local/lib/ruby/gems/1.8, or is that controlled by
some package manager?
Looks to me that gem is installing the right version in /Library/Ruby/
Gems/1.8, but spec is looking at /usr/local/lib/ruby/gems/1.8. Should
i just blast /usr/local/lib/ruby/gems/1.8, or is that controlled by
some package manager?
/usr/local/... Is stuff you've installed yourself. Getting rid of that
ruby install and installing everything in the remaining one would
certainly be one way forward (but make sure you get rid of all of it -
not just the gems)
The ruby in /Library belongs to the system. I wouldn't touch that one