39

I downloaded ruby trhrough the rails installer but i now want ruby 2.0.0 and already downloaded it. how do i update my ruby because whe i do

ruby -v

it still comes up as ruby version 1.9.3.

user2202706
  • 497
  • 1
  • 4
  • 5

3 Answers3

41

I recommend using Chocolatey to manage your ruby installation.

It's a unix style package manager for windows.

It's quite easy to install, you can find instructions on their website.

In cmd.exe (run as administrator):

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Then you can install ruby:

choco install ruby

And upgrade it later:

choco upgrade ruby
sokkyoku
  • 2,161
  • 1
  • 20
  • 22
29

The easiest way for you might be to use RubyInstaller, which its version 2.0.0-p0 is now available for download as installers. Follow the link http://rubyinstaller.org/ for more information.

Luís Ramalho
  • 10,018
  • 4
  • 52
  • 67
  • yea that is what i did, do i just delete 1.9.3 in the c directory and create a new path for 2.0.0? – user2202706 Mar 30 '13 at 19:54
  • 4
    On the announcement they stated _"DO NOT install Ruby 2.0 on top of existing Ruby 1.9.3, or try to use compiled extensions with it."_ (https://groups.google.com/forum/#!topic/rubyinstaller/mg5ailNICvM/discussion). So yes, just go ahead and delete the previous version and install the new one. Good luck! – Luís Ramalho Mar 30 '13 at 19:59
  • This takes inordinately long - est. 15 mins - and doesn't work for me. When I type `ruby -v` it stil shows up as 2.2.4 instead of 2.5. – MSC Jan 15 '19 at 08:17
-4

Either You can go with new Installer or use "gem"(ruby package manager) to update.

Vivek Panday
  • 1,426
  • 2
  • 16
  • 34