Made a Mistake Installing Rvm with Sudo. How to Reverse

Made a mistake installing RVM with sudo. How to reverse?

Use rvm implode to uninstall rvm. Check that there are no environment variables left over in /etc/profile, /etc/bash_profile or whatever shell you're using. Once you do that, then re-install using the single user guide found here.

You'll have to execute the implode command using sudo since you installed it as root.

How do I fix a RVM install that was done using SUDO

Remove also

/etc/rvmrc 

directory and then install RVM

Should Success install !!!

Rvm ruby Permission denied

You have a multiuser installation of rvm - this is not recommended because of the troubles you can get with it (like yours).

Since you are already there this should fix it:

rvmsudo rvm get stable --auto-dotfiles
rvm fix-permissions system

Also make sure you are in rvm group - if not add yourself:

rvm group add rvm $USER

and log in to a new shell (log out and log back in).

How to Uninstall RVM?

It’s easy; just do the following:

rvm implode

or

rm -rf ~/.rvm

And don’t forget to remove the script calls in the following files:

  • ~/.bashrc
  • ~/.bash_profile
  • ~/.profile

And maybe others depending on whatever shell you’re using.

Issues installing rvm on ubuntu 11.04 Server

This fix did it:-

source ~/.bash_profile 

trouble with installing rvm in ubuntu

Did you reload your shell or open a new terminal window?

Did you follow the diagnostics on the RVM install page, in particular the section "Troubleshooting Your Install", checking to see if RVM is known as a function? You should see something like this:

user$ type rvm | head -1
rvm is a function

Ubuntu 11.10 RVM Installation Error

Why don't you do it the intuitive way:

wget https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
chmod +x ./rvm-installer
bash ./rvm-installer

Cannot set up RVM in Xubuntu on VMware

By using the sudo version of the install script, you have installed the multi user version of rvm, and then you ran the single user "sourcing" script with sudo...

When using the multi user version, rvm will not install into $HOME/.rvm, but in /usr/local/rvm.

Therefore you will have to use the multi user way to source the rvm script, and that is to add your user to the rvm group.

As shine already posted though, you probably didn't want to install system wide rvm to start with.



Related Topics



Leave a reply



Submit