Last active
May 29, 2020 22:51
-
-
Save anettodev/44a0632f5034b47534cf37dc75c11385 to your computer and use it in GitHub Desktop.
RBENV steps installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Install rbenv | |
$ brew update && brew install rbenv ruby-build | |
## Install Ruby Version Choosed (2.6.5 it's the one I want) | |
$ rbenv install -v 2.6.5 | |
$ rbenv global 2.6.5 | |
## Check Ruby Version | |
$ ruby -v | |
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19] | |
$ ruby -e "puts (1..100).reduce(:+)" | |
5050 | |
## Set ruby PATH to ZSH or Bash | |
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
$ source ~/.bash_profile | |
// if u use ZSH | |
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
$ source ~/.zshrc | |
## Check if everything is ok | |
$ rbenv init | |
$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment