简体   繁体   中英

How to install Rails 4 (final) along with the latest version of Ruby via RVM?

I've found ways to install Rails 4 via RVM but all of them refers to the beta version.

How to install the final version along with the latest version of Ruby (via RVM)?

rvm get stable to get the last rvm versión

rvm install 2.0.0 to install ruby 2.0

rvm use 2.0.0 to use ruby 2.0

gem install rails to install rails 4.0

First you need to update your rvm to the latest stable version

rvm get stable

Then, you can check all available ruby versions by

rvm list known

It should display something like this 在此输入图像描述

then install ruby 2.0 by

rvm install 2.0.0-p247

once it's done, install rails by

gem install rails --version 4.0.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM