From trying to do bundle I get:
$ gem install bundler
Fetching: bundler-1.2.0.gem (100%)
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems
From trying to do bundle I get:
$ gem install bundler
Fetching: bundler-1.2.0.gem (100%)
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems
Add this to the bottom of .bashrc
Have you tried executing this as superuser?
sudo gem install bundler
Or, you could try changing the
/var/lib/gems
modes usingchmod
.Try this:
I think that problem comes from the fact that the shell (in the terminal) you are running the bundler in, is not a login shell. Make it a login shell as follows: