ruby still shows old version

osx-leopard, ruby, ruby-2.0, rubygems, rvm

Solution

I installed it with `brew install ruby` and it still showed the original Mac version (2.3) too. The following commands fixed it:

First check if Ruby is still pointed to the original location:

which ruby
# /usr/bin/ruby

Change this to the new location.

export PATH=/usr/local/opt/ruby/bin:$PATH
which ruby
# /usr/local/opt/ruby/bin/ruby

Check if you have the new version

ruby -v
# ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin18]

Solved it!

Problem

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.

Original source