Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save solancer/b4700b36f68118a1cfe1e2a891ff60c7 to your computer and use it in GitHub Desktop.
Save solancer/b4700b36f68118a1cfe1e2a891ff60c7 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