Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble on uninstalling RVM

I am running Ubuntu 10.04 Lucid and I was probably wrong to uninstall RVM and now it seams to be not completely removed from the system. Now I would like to install that again but I am in trouble.

What happens is that I have strange outputs generated when I try to execute some command lines:

# Note that following command lines don't output the version
# (between the word "version" and the word "is") as it should be.

$ rvm
$ rvm -v
> -bash: /usr/local/rvm/scripts/base: No such file or directory
> A RVM version  is installed yet 1.10.3 is loaded.
>  Please do one of the following:
>   * 'rvm reload'
>   * open a new shell


# Even if I use the 'cd' command I have problems...

$ cd ..
> -bash: /usr/local/rvm/scripts/initialize: No such file or directory
> -bash: /usr/local/rvm/scripts/hook: No such file or directory

That probably means that RVM is not correctly removed even if Ruby seams to be running as well:

$ which ruby
/usr/local/bin/ruby
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]

So, what I can do to completely remove/uninstall RVM?


UPDATE

I solved part of the problem (or, maybe, all problems): that (those) was related to Phusion Passenger that was still loading the old path related to the Ruby version managed by RVM.

like image 840
Backo Avatar asked Mar 14 '12 18:03

Backo


People also ask

How do I remove Ruby from RVM?

There are two ways to remove rubies from rvm: rvm remove # Removes the ruby, source files and optional gemsets / archives. rvm uninstall # Just removes the ruby - leaves everything else.

How do I uninstall a specific version of Ruby?

Any gems that you install while using an RVM's ruby version, is self contained in that version. However there may come a time when you no longer want to use a particular ruby version and want to delete it along with all it's gems. Then this can be done using the “remove” command.


2 Answers

RVM installs everything into ~/.rvm. To remove RVM from your system run 'rm -rf ~/.rvm'.

Refer this. and where is everything installed to?

like image 160
asitmoharna Avatar answered Oct 24 '22 03:10

asitmoharna


first try echo $rvm_path - if that shows anything - rm -rf it

second:

sudo rm -rf /ust/local/rvm /etc/rvmrc /etc/profile.d/rvm.sh ~/.rvm*

next check ls -l /usr/local/bin | grep rvm this will show links to rvm - rm -rf them

and last which rvm - if it shows anything try to check this path and remove at least this file.

like image 44
mpapis Avatar answered Oct 24 '22 02:10

mpapis