I installed Ruby v2.6.3 via RVM on my laptop for a Rails application.
To activate it I ran:
rvm --default use 2.6.3
However, if I restart my macOS laptop and check the current version of Ruby using rvm list
, then the old v2.3.3 version is set.
How do I permanently set the version "2.6.3" as the one to use? The same thing occurs on Ubuntu, when I deploy a Rails application, the Ruby version automatically reverts back to v2.3.3 instead of v2.6.3.
rvm list
ruby-2.2.3 [ x86_64 ]
=* ruby-2.3.3 [ x86_64 ]
ruby-2.4.2 [ x86_64 ]
ruby-2.5.0 [ x86_64 ]
ruby-2.6.1 [ x86_64 ]
ruby-2.6.3 [ x86_64 ]
I noticed that after restarting my laptop, rvm list
looks a bit different:
ruby-2.2.3 [ x86_64 ]
=> ruby-2.3.3 [ x86_64 ]
ruby-2.4.2 [ x86_64 ]
ruby-2.5.0 [ x86_64 ]
ruby-2.6.1 [ x86_64 ]
* ruby-2.6.3 [ x86_64 ]
Now, version 2.6.3 is automatically set as the default, however the current version 2.3.3 is still selected.