How to upgrade to the latest version of ruby?

I am using RVM with Ubuntu13.04. Installed version of Ruby is :

kirti@kirti-Aspire-5733Z:~$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]

How can I upgrade it into the newer latest version of Ruby?

Am 13.07.2013 10:32, schrieb Love U Ruby:

I am using RVM with Ubuntu13.04. Installed version of Ruby is :

kirti@kirti-Aspire-5733Z:~$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]

How can I upgrade it into the newer latest version of Ruby?

  1. search for “rvm upgrade ruby” on the internet
  2. do what the web tells you to do

:slight_smile:

Am 13.07.2013 10:32, schrieb Love U Ruby:

I am using RVM with Ubuntu13.04. Installed version of Ruby is :

kirti@kirti-Aspire-5733Z:~$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]

How can I upgrade it into the newer latest version of Ruby?

And here the solution :slight_smile:

  1. First, you probably need to update the list of known rubies

    $ rvm get stable

    (`stable’ is what you usually would want)

  2. Then upgrade by either

    a) trying the experimental automatic detection, should work fine:

    $ rvm upgrade 2.0.0

    b) or specifying the exact versions:

    $ rvm upgrade 2.0.0-p0 2.0.0-p247

Regards,
Marcus

  1. First, you probably need to update the list of known rubies

    $ rvm get stable

    (`stable’ is what you usually would want)

  2. Then upgrade by either

    a) trying the experimental automatic detection, should work fine:

    $ rvm upgrade 2.0.0

    b) or specifying the exact versions:

    $ rvm upgrade 2.0.0-p0 2.0.0-p247

@Marcus :- Thank you very much! I am done.

kirti@kirti-Aspire-5733Z:~$ rvm list

rvm rubies

=* ruby-2.0.0-p247 [ i686 ]

=> - current

=* - current && default

* - default

I am getting error when trying to set the default rubt:

kirti@kirti-Aspire-5733Z:~$ rvm list

rvm rubies

ruby-2.0.0-p195 [ i686 ]
=* ruby-2.0.0-p247 [ i686 ]

=> - current

=* - current && default

* - default

kirti@kirti-Aspire-5733Z:~$ rvm --default use ruby-2.0.0-p195

RVM is not a function, selecting rubies with ‘rvm use …’ will not
work.

You need to change your terminal emulator preferences to allow login
shell.
Sometimes it is required to use /bin/bash --login as the command.
Please visit RVM: Ruby Version Manager - Using gnome-terminal with RVM for a example.

kirti@kirti-Aspire-5733Z:~$ rvm --default use 2.0.0-p195

RVM is not a function, selecting rubies with ‘rvm use …’ will not
work.

You need to change your terminal emulator preferences to allow login
shell.
Sometimes it is required to use /bin/bash --login as the command.
Please visit RVM: Ruby Version Manager - Using gnome-terminal with RVM for a example.

Love U Ruby wrote in post #1115354:

I have solved the issue by visiting the below link.

Sometimes it is required to use /bin/bash --login as the command.
Please visit RVM: Ruby Version Manager - Using gnome-terminal with RVM for a example.