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

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.

主站蜘蛛池模板: 安龙县| 灵山县| 泸溪县| 鹤山市| 通辽市| 潼关县| 江口县| 长泰县| 绍兴县| 应城市| 大埔区| 扬州市| 蒲江县| 南涧| 且末县| 古交市| 四平市| 凤凰县| 来安县| 武定县| 水富县| 博乐市| 伊吾县| 彩票| 文安县| 克山县| 资溪县| 昌吉市| 泸水县| 电白县| 伊宁市| 洪泽县| 平和县| 曲阜市| 洛川县| 盐池县| 肇源县| 汝州市| 建昌县| 济宁市| 许昌市|