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
Add Current Time Before Log Message
Rails Guides Offline Documentation
How to Export a Rails Model to JSON Schema
How to Find Out the Starting Point for Each Match in Ruby
Is There a Shorthand If (Without Else) Statement in Ruby on Rails
How to Read Post Data in Rack Request
Approach for Installing System Service Implemented as Ruby Gem
Sending Http Post Request in Ruby by Net::Http
Is There a Definitive Reference Document for Ruby Syntax
Append Row to CSV File Ruby 1.9 CSV Lib
Rails Console Fails with 'Switch to Inspect Mode' in Windows
Ruby Method, Proc, and Block Confusion
How to Ensure a Rake Task Only Running a Process at a Time
How to Break Out of a Map/Collect and Return Whatever Has Been Collected Up to That Point