How to set default Ruby version with RVM?

前端 未结 4 1780
情话喂你
情话喂你 2020-12-04 17:28

Ubuntu 11.

I do the following:

$ rvm --default use 1.9.2 and I get:

Using /home/md/.rvm/gems/ruby-1.9.2-p180 so that is goo

4条回答
  •  渐次进展
    2020-12-04 18:24

    Late to party - anyway.

    You did correctly set the default ruby version: rvm --default use 1.9.2

    However, you need to update your Gemfile to the target ruby, because RVM references that file to select the working ruby version when you open terminal , that's why it reverted to the previous ruby version.

提交回复
热议问题