Ruby-on-rails – Error installing RVM using sudo. How to reverse it?

on-rails – Error installing RVM using sudo. How to reverse it?… here is a solution to the problem.

on-rails – Error installing RVM using sudo. How to reverse it?

I’m new to Rails and Linux and have installed RVM using sudo.

sudo bash -s stable < <(curl -s
https://raw.github/wayneeseguin/rvm/master/binscripts/rvm-installer )

Now I have to run most commands (like spork) using “rvmsudo”. It’s redundant, and the way I learn is that when something is redundant, it’s usually wrong. How to get rid of this nuance? Is it the only way to reinstall RVM? If so, how to reinstall it properly?

Solution

Use RVM

implode to uninstall RVM. Check that there are no legacy environment variables in /etc/profile, /etc/bash_profile, or any shell you are using. Once you’ve done that, then reinstall here using the found single user guide

You must execute the implode command using sudo because you are installing as root.

Related Problems and Solutions