Installation

RubyLogo

Before Installing

You may already have Ruby installed on your computer. You can check inside a terminal emulator by typing:

ruby -v

This should output some information on the installed Ruby version.

Third-Party Tools

There are several tools on each major platform to install Ruby:

  • On Linux/UNIX, you can use the package management system of your distribution or third-party tools (rbenv and RVM).
  • On macOS machines, you can use third-party tools (rbenv and RVM).
  • On Windows machines, you can use RubyInstaller.

See the Official Ruby Installation page for details on using package management systems or third-party tools.

Of course, you can also install Ruby from source on all major platforms.

Install from Source Code

Installing from the source code is a possible solution if you are comfortable enough with your platform and need different settings for your environment. It is also an option if no premade packages are available for your platform

See the Official Ruby Installation page for details on building Ruby from source code. If you have an issue compiling Ruby, consider using one of the third party tools mentioned above.

  • Most Recent Stable Release
    • Ruby 3.2.2 (Download Link)
    • sha256: 96c57558871a6748de5bc9f274e93f4b5aad06cd8f37befa0e8d94e7b8a423bc

    • Visit the Official Ruby Releases page for all available releases

Online Compilers

You can try/test basic Ruby code in your browser.

Online compilers are a fast and easy way to work with Ruby. Here are a few popular online compilers:

While online compilers are fast and easy, it is recommended to install a complete Ruby release.