rvm upgrade don't remove old symlinks in ~/.rvm/bin #1453

HappySoft opened this Issue Jan 18, 2013 · 2 comments


None yet

2 participants


After executing:

$ rvm upgrade 1.9.3

RVM installed ruby-1.9.3-p374 and not completely removed old version of MRI (ruby-1.9.3-p362) but left the following files:

@mpapis mpapis was assigned Jan 24, 2013
@mpapis mpapis closed this in 52d6fe0 Jan 24, 2013

It is not fixed or what's wrong in the following upgrading procedure?

$ rvm -v

rvm 1.18.6 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

$ rvm upgrade 1.9.3
Are you sure you wish to upgrade from ruby-1.9.3-p374 to ruby-1.9.3-p385? (Y/n): Y
Installing new ruby ruby-1.9.3-p385
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.10/x86_64/ruby-1.9.3-p385.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /home/happysoft/.rvm/rubies/ruby-1.9.3-p385, this may take a while depending on your cpu(s)...
ruby-1.9.3-p385 - #downloading ruby-1.9.3-p385, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 9786k  100 9786k    0     0   403k      0  0:00:24  0:00:24 --:--:--  533k
ruby-1.9.3-p385 - #extracting ruby-1.9.3-p385 to /home/happysoft/.rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #extracted to /home/happysoft/.rvm/src/ruby-1.9.3-p385
ruby-1.9.3-p385 - #configuring
ruby-1.9.3-p385 - #compiling
ruby-1.9.3-p385 - #installing 
Retrieving rubygems-1.8.25
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  371k  100  371k    0     0   296k      0  0:00:01  0:00:01 --:--:--  948k
Extracting rubygems-1.8.25 ...
Removing old Rubygems files...
Installing rubygems-1.8.25 for ruby-1.9.3-p385 ...
Installation of rubygems completed successfully.
Saving wrappers to '/home/happysoft/.rvm/bin'.
ruby-1.9.3-p385 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p385 - #importing default gemsets, this may take time ...
Install of ruby-1.9.3-p385 - #complete 
Migrating gems from ruby-1.9.3-p374 to ruby-1.9.3-p385
Are you sure you wish to MOVE gems from ruby-1.9.3-p374 to ruby-1.9.3-p385?
This will overwrite existing gems in ruby-1.9.3-p385 and remove them from ruby-1.9.3-p374 (Y/n): Y
Moving gemsets...
Moving ruby-1.9.3-p374 to ruby-1.9.3-p385
Making gemset ruby-1.9.3-p385 pristine.
Moving ruby-1.9.3-p374@global to ruby-1.9.3-p385@global
Making gemset ruby-1.9.3-p385@global pristine.
Do you wish to move over aliases? (Y/n): Y
Updating alias default to point to ruby-1.9.3-p385
Do you wish to move over wrappers? (Y/n): Y
Do you also wish to completely remove ruby-1.9.3-p374 (inc. archive)? (Y/n): Y
Removing ruby-1.9.3-p374
Successfully migrated ruby-1.9.3-p374 to ruby-1.9.3-p385
Upgrade complete!

Broken symlinks still alive:

$ cd ~/.rvm/bin && ls *-p374*
erb-ruby-1.9.3-p374@global  irb-ruby-1.9.3-p374@global   rdoc-ruby-1.9.3-p374@global  ruby-1.9.3-p374@global
gem-ruby-1.9.3-p374@global  rake-ruby-1.9.3-p374@global  ri-ruby-1.9.3-p374@global    testrb-ruby-1.9.3-p374@global
Ruby enVironment Manager member

@HappySoft RVM 1.18 was already released, please open a new ticket co we can track fixing this problem for RVM 1.19, please also include in the new ticket a gist of:

rvm --trace upgrade 1.9.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment