How to remove RVM stone?

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 is this possible? The root of this problem probably stems from the fact that I download the latest version of RVM and find that it does not work with the latest version of POW. So I had to blow up the RVM and reinstall the old version. Since then, when I do cap deploy , I get the classics:

 `<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?

+6
source share
8 answers

Are you in gemmet? If so, this gem may be in the interpreter of an unnamed gemset or global gemset. If yes, try

 rvm use 1.9.3 gem uninstall rvm 

or

 rvm use 1.9.3@global gem uninstall rvm 
+9
source

I recently ran into the same rvm error:

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

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

What worked for me: 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 am not 100% sure what caused the error in the first place, but I think it all started when I tried to update rvm with rvm get stable after I couldn’t install some gems. I found out that I was no longer able to install gems due to the fact that I updated my xcode to 4.3.2, and apparently, Apple changed its c complier, which does not play well with rvm.

Hope this helps someone.

+15
source

I just ran into this error. The error you encountered is related to a recent capistrano update. If you add rvm-capistrano to your gemfile and remove the line $LOAD-PATH.unshift from the capistrano deployment file, it should work, at least for me.

+5
source

That would be right. Its in the "global" hemezma. This gemset has "blended" with "game default" and any gemsets you create.

Thus, if you have installed Ruby 1.9.3 (for example, rvm install 1.9.3), it will be installed in ruby ​​"global". You can verify this by running the "gem list rvm -dl", which will show you the name, version, description and disk location of the requested gem.

 ∴ gem list rvm -dl *** LOCAL GEMS *** rvm (1.11.3.3) Authors: Wayne E. Seguin, Michal Papis Homepage: https://rvm.beginrescueend.com/ Installed at: /home/me/.rvm/gems/ ruby-1.9.3-p194@global RVM Ruby Gem Library ∴ 

I don’t know why you want to remove it, but you would do as Abe said as a second choice.

+2
source

To provide more details, RVM works with POW, this is a known issue: https://github.com/37signals/pow/issues/271

the simplest solution (in the dir project):

 rvm env . > .powenv 
+2
source

The problem is that rvm 1.12 and up do not work well with capistrano ... So delete your rvm and then get rvm 1.11 (rvm get 1.11.0)

+2
source

The RVM version may not be compatible with POW. You can uninstall RVM and then install the latest version.

+1
source

Nathan got it right: fooobar.com/questions/914075 / ...

You used to have to do unshift in your deploy.rb, but recent versions of RVM made this hack no longer necessary. Just delete it and add the rvm-capistrano gem to your gemfile. It works like a charm.

-1
source

Source: https://habr.com/ru/post/914075/


All Articles