sudo more and more often when I wanted to install a gem or even do bundle install!At some point it became ridiculous, as I couldn't do anything without
sudo anymore - even saving a Sublime file when working on an app. I tried to reinstall, but still no luck. Later, it turned out that my installation of RVM was probably system-wide instead of user-specific and my user name was not added to it.Other than reinstalling, the following steps should help to fix the nightmare:
- in terminal, type
idand see if there is a group called 'rvm' in the list of the results; - if not, create a group by typing
rvm group create rvm - add yourself as a user by typing
rvm group add rvm your_user_name - fix permissions by typing
rvm fix-permissions - make sure you have a stable version:
rvm get stable - restart, as it might be required for the changes to take effect.
I'm writing this up in case if something goes wrong again, there is a complete list of instructions. Hopefully, no more dancing with RVM.
No comments :
Post a Comment