Created
January 3, 2017 15:21
-
-
Save solancer/b4700b36f68118a1cfe1e2a891ff60c7 to your computer and use it in GitHub Desktop.
Install Ruby Gems on Mac OS X without sudo
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 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