Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why rvm install 2.0.0 asks for sudo password?

Tags:

ruby

rvm

I'm trying to install ruby 2.0.0-p247 through rvm. But, it is asking for password. Is it normal to provide sudo password? I've not configured sudo password in sudoers file. I'm using Oracle Enterprise Linux 6 x64 .

like image 276
Rabin Halder Avatar asked Sep 29 '13 19:09

Rabin Halder


2 Answers

The sudo is for autolibs - which means RVM will install the required software like openssh or libyaml which are required for standard ruby to work properly.

You can change the autolibs to see the required packages instead of installing them:

rvm autolibs read-fail

and to get back to the default which installs requirements:

rvm autolibs reset
like image 75
mpapis Avatar answered Oct 18 '22 05:10

mpapis


This is from the RVM documentation for multiple user installations:

However, once the install is complete, and the instructions to add users to the rvm group is followed, the use of either sudo or rvmsudo is no longer required. The 'sudo' command is only to temporarily elevate privileges so the installer can complete it's work. If you need to use 'sudo' or 'rvmsudo' after the install is complete, some part of the install directions were not properly followed. This usually is because people execute the install as root, rather than executing the installation instructions from a non-privileged user account.

Those last two sentences are very important.

RVM is designed to be used as a single-user tool, installed in their home directory, and, if installed that way NEVER needs sudo to run or install or change anything, nor will the user ever have to do things as root.

The "Troubleshooting Your Install" section in the installation documentation page is a good starting point for you.

like image 2
the Tin Man Avatar answered Oct 18 '22 07:10

the Tin Man