Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you uninstall RVM gem?

Strange... but this is what I got :

$ gem list | grep rvm
>> rvm (1.11.3.3)
$ gem uninstall rvm
>> INFO:  gem "rvm" is not installed

How can that be possible? The root of this problem probably stems from me downloading the latest RVM and finding that it does not work with the latest version of POW. Thus I had to implode RVM and reinstall an older version. Since then when I do a cap deploy, I get the classic :

`<top (required)>': RVM - Capistrano integration was extracted to a separate gem, install: `gem install rvm-capistrano` and remove the `$LOAD_PATH.unshift` line, note also the 'set :rvm_type, :user' is now the default (instead of :system). (RuntimeError)

Any ideas?

like image 829
Trip Avatar asked Apr 24 '12 21:04

Trip


2 Answers

I recently encountered the same rvm error:

"RVM - Capistrano integration was extracted to a separate gem, install: gem install rvm-capistrano and remove the $LOAD_PATH.unshift line, note also the 'set :rvm_type, :user' is now the default (instead of :system). (RuntimeError)"

Doing what the error suggested did not work for me at all.

What did work for me was to do: rvm -v

When I did this I saw that my rvm version was rvm 1.13.0

Using "rvm get" I did "rvm get 1.12.0" but still got the error

Then I tried "rvm get 1.11.0" and then presto, my rvm started working again.

I'm not 100% sure what caused the error in the first place but I think it all began when I tried to upgrade rvm with rvm get stable after I was unable to install some gems. I found out that I wasn't able to install gems anymore due to the fact that I had updated my xcode to 4.3.2 and apparently Apple changed their c complier which doesn't play nice with rvm.

Hope this helps someone.

like image 159
blischalk Avatar answered Sep 27 '22 19:09

blischalk


Are you in a gemset? If so, that gem might be in the interpreter's unnamed gemset or the global gemset. If so, try

rvm use 1.9.3
gem uninstall rvm

or

rvm use 1.9.3@global
gem uninstall rvm
like image 34
Abe Voelker Avatar answered Sep 27 '22 19:09

Abe Voelker