Forked from solancer/Install Ruby Gems on Mac OS X without sudo
Created
November 12, 2018 03:41
-
-
Save andhikayuana/bc7285a6762b11e88db73c50acf0f5a4 to your computer and use it in GitHub Desktop.
Install Ruby Gems on Mac OS X without sudo
This file contains hidden or 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