-
Notifications
You must be signed in to change notification settings - Fork 1
Bundler install hack
Tristan Morgan edited this page Mar 5, 2020
·
3 revisions
One way to install a gem (not just this one) without needing to sudo it in, is to use Bundler. It also helps to keep different versions of gems installed for different purposes. If you create a Gemfile like the following and put it in a folder ('~/work') for instance then use the binstubs with your PATH environment variable it will act like a system installed application.
source "https://rubygems.org"
gem 'awskeyring'
Then you can run bundle install --without development --binstubs --path=~/.bundle/vendor
should install the gems to the vendor path and drop an executable in the '~/bin' folder.