How do I upgrade my ruby 1.9.2-p0 to the latest patch level using rvm?

前端 未结 8 1819
庸人自扰
庸人自扰 2021-01-29 18:25

My current version of ruby is ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] but I want to update it to the latest patch level using rvm. How can I

8条回答
  •  别那么骄傲
    2021-01-29 19:00

    First of all, update your RVM installation by running rvm get stable.

    To make sure you're running the new RVM version, you'll then need to run rvm reload (or just open a new terminal).

    Once that's done, you can ask RVM to list the ruby versions available to install by running rvm list known.

    In the output you should now see:

    # MRI Rubies
    ...
    [ruby-]1.9.2[-p320]
    ...
    

    The square brackets around the patch level indicate that this is currently RVM's default patch level for ruby 1.9.2.

    Finally, to install the new ruby version, just run rvm install 1.9.2 - and wait for it to compile!

提交回复
热议问题