Skip to content

Instantly share code, notes, and snippets.

@brentluna
Last active May 2, 2016 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brentluna/aac661f3a0c2c6d0a729f8236cc7154c to your computer and use it in GitHub Desktop.
Save brentluna/aac661f3a0c2c6d0a729f8236cc7154c to your computer and use it in GitHub Desktop.
$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 11.1.2
Using i18n 0.7.0
Using json 1.8.3
Your user account isn't allowed to install to the system Rubygems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to Rubygems using sudo.
Password:
[brent@arch-desktop blogger]$ bundle update
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....
Using rake 11.1.2
Using i18n 0.7.0
Using json 1.8.3
Your user account isn't allowed to install to the system Rubygems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to Rubygems using sudo.
Password:
[brent@arch-desktop blogger]$ command -v bundle
/home/brent/.gem/ruby/2.3.0/bin/bundle
[brent@arch-desktop blogger]$ gem which bundler
/home/brent/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.12.1/lib/bundler.rb
[brent@arch-desktop blogger]$ command -v gem
/home/brent/.rbenv/shims/gem
$ printenv PATH
/home/brent/.rbenv/shims:/home/brent/.rbenv/bin:/home/brent/.gem/ruby/2.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
I have this in .bashrc
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment