I was trying to follow the book "Agile Web Development with Rails 5.1" (on MacOS).
I want ruby -v
to be 2.4.1
.
Currently, ruby -v
says ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]
.
I want to use rbenv
to manage the version of Ruby installed. So I tried rbenv install 2.4.1
then rbenv global 2.4.1
. But that still did not change the output of ruby -v
. What more do I have to do?
I see that which ruby
returns ~/.rubies/ruby-2.6.5/bin/ruby
. I can't remember how I installed that version of Ruby - it might have been homebrew.