Why rvm install 2.0.0 asks for sudo password?

I am trying to install ruby ​​2.0.0-p247 via rvm. But he asks for a password. Is it ok to provide sudo password? I did not configure the sudo password in the sudoers file. I am using Oracle Enterprise Linux 6 x64.

+6
source share
3 answers

sudo designed for autolibs - this means that RVM will install the required software, such as openssh or libyaml , which is required for a standard ruby ​​to work correctly.

You can modify autolibs to see the necessary packages, rather than installing them:

 rvm autolibs read-fail 

and return to the standard that sets the requirements:

 rvm autolibs reset 
+9
source

This is from the RVM documentation for several custom installations:

However, once the installation is complete, and the following instructions for adding users to the rvm group, using sudo or rvmsudo is no longer required. The sudo command is intended only to temporarily elevate privileges so that the installer can shut down. If you need to use "sudo" or "rvmsudo" after the installation is complete, some of the installation instructions have not been properly followed. This usually happens because people perform the installation as root rather than follow the installation instructions from a user account without privileges.

Those last two sentences are very important.

RVM is intended to be used as a single-user tool installed in their home directory, and if it is installed this way, NEVER need sudo to run or install or modify anything, or when the user will never do anything as root .

The Installation Troubleshooting section of the installation documentation page is a good starting point for you.

+2
source

Just do "sudo rvm ...." then enter your password

-6
source

Source: https://habr.com/ru/post/954898/


All Articles