ColinDabritz / rails_lab_coat

Tools for doing rails science! (and cleaning up after yourself)
2 stars 2 forks source link

Errno::EACCES: Permission denied when using gems #8

Closed ColinDabritz closed 11 years ago

ColinDabritz commented 11 years ago

This problem was caused by the rvm script not running under the appropriate user.

The error was:

Errno::EACCES: Permission denied

# - /usr/local/rvm/gems/ruby-2.0.0-p195/build_info/coffee-script-source-1.6.2.info

The fix was to use su to run the command as the vagrant user

su -l vagrant -c '\curl -s -L https://get.rvm.io | bash -s stable --rails --quiet-curl --autolibs=enabled'

This is being posted so that it can be googled later. If you have the above issue, your gems may have the wrong user rights.