Today you need to install a ruby package, but the ruby version is too low, previously used rvm, but when installed rvm found abnormal system
error messages and found there is another good alternative toolsrbenv
installation
I am a mac system
- Use brew Installation
brew install rbenv
- Optional display ruby version
rbenv install --list
- Install a version of
rbenv install 2.6.3
- Configuring the global version
rbenv global 2.6.3
- Configuration shell rbenv
rbenv init
effect
rbenv init
# Load rbenv automatically by appending
# the following to ~/.zshrc:
eval "$(rbenv init -)"
- View version
ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin17]
Reference material
https://github.com/rbenv/rbenv
https://stackoverflow.com/questions/38194032/how-to-update-ruby-version-2-0-0-to-the-latest-version-in-mac-osx-yosemite