Ruby Tutorial
Ruby CGI
Ruby Advanced
Installing Ruby on Windows is pretty straightforward. Here's a step-by-step guide:
1. Download RubyInstaller:
Go to the RubyInstaller for Windows website: https://rubyinstaller.org/ . This is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important documentation, and more.
2. Choose a Version:
Choose the version of Ruby that you want to install. As of my knowledge cutoff in September 2021, Ruby 3.0 is the latest stable version. Select the version you want and download the corresponding installer. If you're not sure which version to choose, it's generally safe to go with the latest one.
3. Run the Installer:
Find the installer file you just downloaded (it should be in your Downloads folder and will have a ".exe" file extension). Double click the installer file to run it.
4. Follow the Installer Prompts:
The RubyInstaller is a typical Windows installer, and it will guide you through the process. You can mostly just click "Next" to accept the default options. However, when you get to the screen with a checkbox for "Add Ruby executables to your PATH," make sure this box is checked. This will allow you to run Ruby from the command line.
5. Finish the Installation:
Once you've gone through all the installer prompts, click "Finish" to complete the installation.
6. Verify the Installation:
Open a new command prompt window (you can search for "cmd" in the Start Menu to find the Command Prompt application). Type the following command and hit Enter:
ruby -v
This command asks Ruby to tell you its version number. If Ruby is correctly installed, you should see a response with the version number of Ruby that you installed. If you see this, congratulations! Ruby is correctly installed on your Windows computer.