Sudo rvm use 1.9.2 -default # Set a system-wide default version into /usr/share/ruby_rvm/config/alias #Open rubymine from terminal install# Sudo addgroup username rvm # Add all users to that group that may use rvm. Sudo chown -RL :rvm /usr/share/ruby-rvm # Fix write permission probs when installing gems as non-superuser might not be needed. If setting the group is not enough, make yourself the owner of these files. Now close your X session and open a new X session – only this forced re-login makes your new group membership effective.Īt this point, RVM will be registered as a shell function whenever starting a login shell, and user’s rights to it are evaluated based on the rvm group membership. But there is no means to let the chosen RVM configuration become effective, like selecting a default Ruby environment (/etc/profile.d/rvm.sh sources /etc/rvmrc and ~/.rvmrc, but these are files that use bash syntax for setting path variables etc., not RVM config files). It is unclear why this step of reading the rvm config was not included in /etc/profile.d/rvm.sh, but probably because this has to be done on a user-specific basis, not system-wide, as it can also include user-specific configuration (but these are also optional). So to read the RVM config, add the following line to the end of. Note that on Ubuntu 12.04, this really has to go to. bash_profile, which, if present, is read as the only configuration file for login shells. Normally, it should also be possible to add this to the end of. profile, which is also read by login shells but on Ubuntu sources. bashrc before and that step does something, unknown so far, that prohibits that the above line is effective (see ruby -v output). This problem is not the & return line problem because it also happens in interactive shells (those allowing user interaction, like a normal virtual terminal). bashrc in Ubuntu 12.04, but can be ignored as. bashrc will not be evalutated in our above setup. Now, some additional configuration is needed to make the “Mixed Mode” effective.
0 Comments
Leave a Reply. |