Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I finally got RVM working and now I would like RVM to install the latest stable ruby version.

In the tutorial I am using they installed ruby 1.9.3 with command :

rvm install 1.9.3

Now I want to know if there is a command to download the latest stable version, or do I have to check latest stable version and download it like that, or else, can I download any old version and run an upgrade?

Normally I would try out everything, but I am working on a new server and I am trying to set it up as clean as I can :)

share|improve this question

3 Answers 3

up vote 20 down vote accepted

you can install latest rvm and ruby by :

$ \curl -L https://get.rvm.io | bash -s stable --ruby

and check all the ruby version with stability

$ rvm list known

can also check details here : http://www.ruby-lang.org/en/downloads/

$ rvm install ruby 2.0.0-p247 

Use when you want to download specific version or know this is stable.

share|improve this answer
    
thank you very much sir. –  Private Aug 8 '13 at 15:27
    
My pleasure...it's works for you !! –  Gaurav Sharma Aug 9 '13 at 6:19

The following command will install latest stable version of ruby:

rvm install ruby --latest
share|improve this answer

Install RVM with RUBY

sudo apt-get install curl

after install install rvm also ruby

\curl -sSL https://get.rvm.io | bash -s stable

if you face issue with the above line (Failed to connect to get.rvm.io port 443: Network is unreachable)

in browser go to https://get.rvm.io save the page in any location

make it executable file name rvm-installer

chmod +x rvm-installer

then do the following

bash rvm-installer stable --ruby

then check rvm list note the version of ruby listing on terminal

**change terminal to login shell. open a new terminal **

then rvm use 2.1.1 => ( 2.1.1 version )

then its done!

pd@admin:~$ ruby -v

ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]

programmers keep on coding with ruby.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.