I have installed or I think is is so a new version of ruby on my osx ppc running leopard 10.5.8 but when I run ruby --version it shows the old one 1.8.7
(default on the machine) but when I run...
find /usr -type f -name \*.rb
it shows ruby2.0.o is on:
/usr/local/lib/ruby/2.0.0/
with all its .rb
files.
But when I check using locate ruby
it shows the version 1.8.7 under
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Anytime I check on ruby --version
it shows the 1.8.7...how can I change that?
Totally newbie...thanks.
BTW rvm is not installing by anychance or homebrew and My xcode doesn't have downloads.
After running in circles trying to reinstall rvm
and ruby
, what did it for me was simply changing the default ruby version used by rvm
:
Try running rvm list
In my case I had
=* ruby-2.1.1 [ x86_64 ]
ruby-2.1.4 [ x86_64 ]
ruby-2.2.2 [ x86_64 ]
After running rvm --default use 2.2.2, I had the correct ruby version:
ruby-2.1.1 [ x86_64 ]
ruby-2.1.4 [ x86_64 ]
=* ruby-2.2.2 [ x86_64 ]
See https://rvm.io/rubies/default
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With