Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)?

like image 476
alexchenco Avatar asked Jul 04 '13 03:07

alexchenco


2 Answers

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

like image 83
Aguardientico Avatar answered Oct 11 '22 03:10

Aguardientico


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 thisenter image description here

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
like image 43
fengd Avatar answered Oct 11 '22 02:10

fengd