Skip to content

Instantly share code, notes, and snippets.

@githubnando
Last active October 2, 2018 14:17
Show Gist options
  • Save githubnando/7beba05275c5d945ada61cacf7d44809 to your computer and use it in GitHub Desktop.
Save githubnando/7beba05275c5d945ada61cacf7d44809 to your computer and use it in GitHub Desktop.
Usage of gem package installation without sudo on MacOS Mojave
$ brew install rbenv ruby-build
$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc
$ source ~/.zshrc

Install Ruby

$ rbenv install 2.5.0
$ rbenv global 2.5.0
$ ruby -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment