官术网_书友最值得收藏!

Installing different Ruby versions with RVM

If you're interested in using RVM to manage multiple versions of Ruby on your system, I want to give some more detailed instructions on how you can accomplish this:

  1. Start out by going to your Terminal and typing the following command:
      rvm list

If you have RVM installed, this will bring up all of the versions of Ruby that you have access to on your computer.

  1. If there is a version of Ruby that you want and that you don't already have on your system, simply type this in to the Terminal:
      rvm install 2.3.0  

Running this command will install the 2.3.0 version of Ruby for you:

You can do this for any versions of Ruby that are available via RVM. This makes it easy to ensure you're always using the most up-to-date version of the language. Using RVM is also helpful if you have different projects that utilize various versions of the language. For example, I have some legacy Ruby projects that use Ruby version 1.9.3, while all of my new projects use Ruby 2.3.0 (at the time of writing this guide).

By leveraging RVM, I can quickly switch between different versions of Ruby with a simple Terminal command. Alternatively, if you're not a fan of RVM, you can also use rbenv, which is a similar service.

主站蜘蛛池模板: 荔浦县| 闽侯县| 大姚县| 沅陵县| 潼关县| 利川市| 海丰县| 辉县市| 临猗县| 三江| 南安市| 清苑县| 拜城县| 沙坪坝区| 施甸县| 许昌县| 佛坪县| 绥阳县| 翁牛特旗| 西宁市| 白河县| 长岛县| 锦屏县| 通化市| 化州市| 巴林左旗| 武宁县| 石门县| 临漳县| 武冈市| 台前县| 思茅市| 锦州市| 沛县| 兴安县| 伊宁市| 龙山县| 平江县| 化州市| 乐至县| 庄浪县|