Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andhikayuana/bc7285a6762b11e88db73c50acf0f5a4 to your computer and use it in GitHub Desktop.
Save andhikayuana/bc7285a6762b11e88db73c50acf0f5a4 to your computer and use it in GitHub Desktop.
Install Ruby Gems on Mac OS X without sudo
Install Ruby Gems on Mac OS X without sudo
1. Add GEM_HOME to your .bash_profile
For example, nano ~/.bash_profile and add
export GEM_HOME=/Users/srinivas/.gem where the path is to your own Home folder
2. Add the gem executables to your system path
Also in .bash_profile, add
export PATH="$GEM_HOME/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment