Ruby 1.9.2 keeps reverting back to 1.8.7 after installing it using RVM

前端 未结 2 1591
逝去的感伤
逝去的感伤 2021-01-14 21:32

I installed Ruby 1.9.2. I used rvm use 1.9.2 and then when I type ruby -v it says 1.9.2. Then when I quit terminal and reopen it, it says 1.8.7 aga

2条回答
  •  甜味超标
    2021-01-14 22:04

    Your default ruby is most likely not set to ruby 1.9.2. Try:

    rvm --default use 1.9.2
    

    Also if you want to see all ruby versions installed, you can run 'rvm list'. The default ruby is prefixed with a => symbol, as shown below.

    $ rvm list
    
    rvm rubies
    
       ruby-1.9.1-p243 [ x86_64 ]
    => ruby-1.9.2-p136 [ x86_64 ]
       ruby-1.9.2-p180 [ x86_64 ]
    

提交回复
热议问题