I want to write about rbenv in detail in the previous article I will take over the contents a little and write it.
Please install or update brew as a prerequisite to using rbenv Install here from official page
The command under installation at the bottom Type in at the terminal.
If already installed Please update and upgrade with this command
brew update && brew upgrade
rbenv versions
#Check version of ruby
rbenv install -l
#List of ruby versions that can be installed
#The list will change with the update of brew.
rbenv install 2.6.6
#Temporarily 2.6.If you want to install 6 this
rbenv local 2.1.5
#Change the version to use(Version used in the current directory), This is important
rbenv rehash
#update
rbenv global version
#Specify the version to be used by default
Recommended Posts