Why does rvm need sudo




















The installation process is similar for both installation methods, however, when installing a multi-user. Also, you only use the sudo command during the install process. In Multi-User configurations, any operations which require sudo access must use the rvmsudo command which preserves the RVM environment and passes this on to sudo. However, please note that are very few cases where rvmsudo is required at all once the core install is completed! Updating RVM itself is not one of them.

Any user in the rvm group can update RVM, rubies, and gemsets. There is never a reason to use sudo post-install. Once any user s added to the 'rvm' group have logged out then back in to gain rvm group membership, they will be able to execute. Note: Users must log out and back in to gain rvm group membership because group memberships are only evaluated by the operating system at initial login time.

If you have trouble installing ruby-debug19 try installing with the following command:. This is usually caused by using pre-release compilers.

In this case, this usually shows up under gcc Configure script flags can be passed by a comma-separated list with no spaces after -C, like so:. If you need to pass compile flags for the compile process, just set the corresponding environment variables.

If you wish to compile an MRI Ruby 1. To generate this documentation for Ruby please execute the following command:. Provided you have not cleaned up the extracted sources for all currently installed Rubies by executing 'rvm cleanup all' then you can install the docs for all currently installed Rubies by executing:.

If you have executed a cleanup, unfortunately, this means to regenerate the documentation you would need to run, for example,:. As always, don't forget to pass whatever additional parameters such as --patch to the reinstall portion of the command that you initially used, if any.

If you can help or wish to become one of the maintainers - just start helping. Love RVM? Linked pull requests. Copy link. Description When installing a version of ruby via rvm , rvm attempts to update via apt-get if the system has some sort of pending updates. Reproduce Install a debian or ubuntu system. Remove sudo. Probably what you want is: rvm autolibs disable disable automatic package install rvm requirements list dependencies, but you'll need to manually install these rvm install ruby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.



0コメント

  • 1000 / 1000