How to use an earlier version of ruby ​​1.9.2

I am using rvm and when I installed ruby ​​1.9.2 it installed ruby-1.9.2-p290 and a few days ago I was unable to link to the older one but asked to install ruby-1.9. 2-P318.

Is it necessary to upgrade to a newer version or could we instruct rvm to use the gemset created with the older version.

+3


source to share


2 answers


All teams RVM, such as rvm install

and rvm use

, can have the patch level, for example rvm install ruby-1.9.2-p290

. If you do not specify one, the last available patch level will be used.



+5


source


As brandon said, you can also customize the default ruby ​​version with the -default flag. This will ensure that you are using the same version every time you start your terminal.

rvm use ruby-1.9.2-p290 --default

      



You can also customize the .rvmrc file in the directory you are working in to ensure that other developers are using the same ruby ​​version and patch level as you.

touch .rvmrc && echo "rvm use ruby-1.9.2-p290" >> .rvmrc

      

+6


source







All Articles