Install ruby gems without root access in your home directory

‹ Using celery with SQS | Making directory trees equivalent to mkdir -p in puppet ›

You can install a ruby gem in your home directory with:

gem install --user-install puppet-module 


gem install --install-dir=$HOME/.gem/ruby/1.8 puppet-module

If you're using bundler:

bundle install --path $HOME/.gem

And then you can run the command line programs installed by adding the local bin directory to your path:

export PATH

Subscribe to All Posts - Wesley Tanaka