wayneeseguin/rvm — Issue #732: rvm upgrade rubies 2 bugs
Author: boyxsh
Created: 2012-01-30 09:20:50+00:00
State: open

version: rvm 1.10.2
gem version 1.3.7

Before I upgrade rubies I used rvm to installed ruby-1.8.7-p334, installed gems mysql (2.8.1) to ruby-1.8.7-p334@global. And create a gemset named rails235 for my project, also installed some gems needed for my project.

During I use "rvm upgrade ruby-1.8.7-p334 ruby-1.8.7-p357" to upgrade rubies, there display an error:

> Moving ruby-1.8.7-p334@global to ruby-1.8.7-p357@global
> Making gemset ruby-1.8.7-p357@global pristine.
> Error running '' under ,
> please read /Users/shell/.rvm/log//gemset.pristine.log
>Moving ruby-1.8.7-p334@rails235 to ruby-1.8.7-p357@rails235
>Making gemset ruby-1.8.7-p357@rails235 pristine.
>Error running '' under ,
>please read /Users/shell/.rvm/log//gemset.pristine.log

BUG 1
After upgrade. I runing rake in my project, it show:

[ruby-1.8.7-p357@rails235 shell:app shell]$rake
-bash: /Users/shell/.rvm/gems/ruby-1.8.7-p357@rails235/bin/rake: /Users/shell/.rvm/rubies/ruby-1.8.7-p334/bin/ruby: bad interpreter: No such file or directory

I need to manually modify the "/Users/shell/.rvm/gems/ruby-1.8.7-p357@rails235bin/rake" file first line to "#!/Users/shell/.rvm/rubies/ruby-1.8.7-p357/bin/ruby" to fix this bug.

BUG 2
After I fixed Bug1,I runing rake in my project, get an error "NameError: uninitialized constant MysqlCompat::MysqlRes" , but I have installed mysql (2.8.1) before I upgrade rubies. I can see mysql in my ruby-1.8.7-p357@rails235 gem list, also in ruby-1.8.7-p357@global.

I need to reinstall gems mysql to fix this bug.