I had to reboot in order for those environment variables to disappear. I also had to remove all trace of rvm from my login shell scripts. I did all this and then tried to reinstall rvm. When I reinstalled rvm it seemed to have the same file permissions problems that led me to unknowingly install it with sudo in the first place. After much too much fiddling around, I gradually understood that I probably had some extraneous environment variables somewhere, so I checked.
Sure enough, I had a handful of rvm -related environment variables that affected how rvm would install itself. I could simply unset these environment variables, but I wanted to ensure that nothing would reset them, so I started to search for which script was setting these environment variables.
I spent an hour trying to find some magic trick to determine where these environment variable values came from. Nothing helped. I logged out and logged back in. The environment variables were still there, even though nobody seemed to be setting them.
This made no sense to me at all. Finally, in the greatest desperation, I rebooted. Also , it will take some manual deletions from root. Make sure , it gets deleted and also all the ruby versions u installed using it. Note that if you installed RVM via apt-get, you have to run some further steps than rvm implode or apt-get remove ruby-rvm to get it to really uninstall. Then rm all the matches. You'll have to reinstall all of those libraries with an RVM-free gem , of course.
After following instructions in accepted answer, check and modify your PATH variable if necessary :. 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. Here is a custom script which we name as 'cleanout-rvm'. I am running Ubuntu Finally, what worked for me was to run. I needed to remove some rvm and rbenv directories as I am now using asdf.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 11 years, 2 months ago. Active 4 months ago. Viewed k times. Improve this question. Not sure about your intentions to remove rvm -- it could be its 'obtrusiveness' -- but rbenv is a a worthwhile alternative. You can still manage multiple Ruby versions on your system, but it doesn't override shell commands, doesn't manage gemsets Bundler is more than sufficient , and doesn't need to be loaded in the shell.
Add a comment. Active Oldest Votes. In order to remove the final trace of rvm, you need to remove the rvm gem, too, if you installed that: gem uninstall rvm There may be elements left over from a Homebrew, Apt or DNF install of it that require removal as well. Improve this answer. If you -like me- have rvm configured in passenger, make sure to reinstall passenger afterwards too.
It may break it temporarily until you create a new shell, as that's just how things like bash behave when you yank executables out of the PATH. Anyone else feel like uninstalling rvm should be easier than this? Good gravy. Show 8 more comments.
Please check all. Kingsley Ijomah Kingsley Ijomah 3, 30 30 silver badges 25 25 bronze badges. What makes that initial message appear? Only when it was installed using the multi-user or with sudo will you see that, and their existence are strong hints that the RVM installation documentation was NOT followed to install it in the first place.
The wrappers include: erb gem irb rake rdoc ri ruby testrb. MrYoshiji Caffeine Coder Caffeine Coder 1, 1 1 gold badge 15 15 silver badges 34 34 bronze badges. Vishnu Atrai Vishnu Atrai 2, 20 20 silver badges 23 23 bronze badges. Run: rvm implode Now you need to uninstall the RVM gem using: gem uninstall rvm Check if there are any remaining RVM files in your home directory, if yes remove them.
0コメント