How to update ruby in windows

后端 未结 3 1347
野的像风
野的像风 2020-12-05 09:54

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

相关标签:
3条回答
  • 2020-12-05 10:16

    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
    
    0 讨论(0)
  • 2020-12-05 10:32

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

    0 讨论(0)
  • 2020-12-05 10:36

    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.

    0 讨论(0)
提交回复
热议问题