Skip to content

Instantly share code, notes, and snippets.

@pxr
Created August 15, 2012 02:39
Show Gist options
  • Save pxr/3355156 to your computer and use it in GitHub Desktop.
Save pxr/3355156 to your computer and use it in GitHub Desktop.
Living with Ruby

Setup to Install Gems Locally Only

You should never have to use 'sudo gem install', but the trick to doing that is to add the following to your .bash_profile:

https://gist.github.com/217895

export GEM_PATH="$HOME/.gem/ruby/1.8"
export GEM_HOME="$HOME/.gem/ruby/1.8"
export PATH="$HOME/.gem/ruby/1.8/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment