Windows Ruby installation environment setup

How to Install Ruby on Windows and Set Up Development Environment

Shou Arisaka
1 min read
Oct 1, 2025

First, download the latest Ruby and the devkit at the bottom from this link https://rubyinstaller.org/downloads/.

Then install Ruby. Next, extract the devkit to any location such as c/devkit. Don’t forget to set the path during Ruby installation.

Once these are done, open Command Prompt or PowerShell and enter the following commands.

cd C:\devkit\
ruby dk.rb init
ruby dk.rb install

If you see a display like the following, it’s probably successful.

[INFO] Updating convenience notice gem override for 'C:/Ruby21'
[INFO] Installing 'C:/Ruby21/lib/ruby/site_ruby/devkit.rb'

Let’s test this now. Create a file like test.rb and write puts ‘test’ in it. Let’s name the file test.rb. Then run ruby test.rb. If test is displayed in the prompt, the installation was successful. You can also verify by running it in a text editor like Atom.

Errors may occur in some cases. In some cases, run ridk install.

Now you can install gems with gem install twitter and such.

Share this article

Shou Arisaka Oct 1, 2025

🔗 Copy Links