Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4645

make ruby default to 3.1.2 on macOS

$
0
0

I am working on macOS.

brew upgrade rubyWarning: ruby 3.1.2 already installed

but doing

ruby -v 

would get me

ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]

I tried

whereis ruby

and it is giving me

/usr/bin/ruby

I want version 3.1.2 to appear when doing ruby -v, but I ran out of idea on how to make my machine default to version 3.1.2 . Any suggestion?


Viewing all articles
Browse latest Browse all 4645

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>