How can I remove RVM (Ruby Version Manager) from my system?
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- gem cleanup shows error: Unable to uninstall bundl
相关文章
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
- ruby - simplify string multiply concatenation
For other shell newbies trying to fix the PATH variable
After following instructions in accepted answer, check and modify your PATH variable if necessary :
if you see "rvm" anywhere, you need to figure out where you are setting PATH and modify. I was setting it in 3 files - so check all the following files:
Delete the lines in the file referencing rvm using the dd command. :wq to save and exit.
source .bashrc
to "reload"Repeat this process (starting with the vim command) for .profile and .bash_profile
If the other answers don’t remove RVM throughly enough for you, RVM’s Troubleshooting page contains this section:
Note that if you installed RVM via apt-get, you have to run some further steps than
rvm implode
orapt-get remove ruby-rvm
to get it to really uninstall.See "Installing RVM on Ubuntu".
There's a simple command built-in that will pull it:
This will remove the
rvm/
directory and all the rubies built within it. In order to remove the final trace of rvm, you need to remove the rvm gem, too:If you've made modifications to your
PATH
you might want to pull those, too. Check your.bashrc
,.profile
and.bash_profile
files, among other things.You may also have an
/etc/rvmrc
file, or one in your home directory~/.rvmrc
that may need to be removed as well.