How do I make ruby 1.9 the default version to use instead of the 1.8.x that is by default installed on os x?
Thanks.
Set Ruby version with rvm on Mac To set a default Ruby version with rvm, enter rvm --default use 3.0. 0 on the command line. To switch to the system ruby, enter rvm use system . To switch back to the default, rvm default .
Pre-installed macOS system Ruby MacOS comes with a “system Ruby” pre-installed. If you see /usr/bin/ruby when you use the which command, it is the pre-installed macOS system Ruby.
As of v2.1.3, the "correct" MacPorts way of setting a specific version of a package as the default is to use the select
command, like this:
sudo port select --set ruby ruby19
There doesn't appear to be any documentation about this command in the MacPorts Guide. You can however run port help select
to get a very limited description. This functionality replaces the +nosuffix
"variant" style of setting the default version.
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