💎 How to Install and Set Up Ruby on Windows – Beginner’s Guide
If you’re looking to dive into Ruby development but you're on a Windows machine, no worries—you can absolutely make it work! In this blog post (paired with the video below 🎥), I’ll walk you through the complete process of installing and setting up Ruby on Windows.
Let’s get started!
🔥 Why Ruby?
Ruby is a clean, elegant programming language that's super popular for building web apps (hello, Ruby on Rails!), scripting, automation, and even some data-related tasks.
Even though it’s traditionally a bit more “at home” on Linux and MacOS, it runs just fine on Windows with the right setup.
🛠️ Step 1: Download RubyInstaller
-
Head to the official RubyInstaller for Windows.
-
Click Download and choose the latest stable version (for example, Ruby 3.x.x).
-
Make sure you pick the correct architecture (64-bit for most modern machines).
The RubyInstaller packages Ruby along with a development kit (DevKit) which you’ll need for building native gems later.
🖥️ Step 2: Install Ruby
-
Run the installer you downloaded.
-
Check the box "Add Ruby executables to your PATH" — super important!
-
Keep the defaults for the installation path.
-
(Optional but recommended) Check "Run ridk install" at the end of setup to install MSYS2 and development tools.
✅ Adding Ruby to PATH allows you to run Ruby commands from any terminal window.
🧰 Step 3: Install MSYS2 (Development Kit)
If you chose to "run ridk install" earlier, you’ll see a prompt to install MSYS2.
-
Select option 3 (
MSYS2 and MINGW development toolchain
) and press Enter. -
It will automatically download and install essential build tools needed by many Ruby gems.
No comments:
Post a Comment