ruby

Managing Ruby Versions in Windows

This article introduces how to manage Ruby versions in Windows. Since rbenv cannot be used in Windows, it explains methods using alternative tools like pik and uru.

Shou Arisaka
2 min read
Nov 16, 2025

Ruby version management is useful when using different versions of Ruby for each project. In Windows environments, you can’t directly use rbenv or RVM, which are widely used in Unix-like systems, so you need to use alternative tools. Here we introduce two tools: uru and pik.

rbenv

rbenv is primarily a Ruby version management tool for Unix-like OSes. It’s not officially supported on Windows. Therefore, in Windows environments, you need to use other tools.

uru

uru is a tool for managing Ruby versions in Windows environments. It’s lightweight and easy to install.

Installing uru

  1. Download the latest version from uru’s official site.
  2. Extract the downloaded file and navigate to the directory containing uru_rt.exe.
  3. Open a command prompt and execute the following command:
    uru_rt admin install
    Note: It must be executed from the same directory as uru_rt.exe. Otherwise, you’ll get the following error:
    [ERROR] must install from same directory as uru_rt.exe

pik

pik is a Ruby version management tool for Windows. While it’s an older tool, it’s useful for specific version management.

Using pik

  1. Check the installation instructions at pik’s official site.
  2. When installing Ruby versions, you may encounter the following error:
    pik install ruby 1.9.3
    There was an error.
    Error: private method `gsub' called for nil:NilClass

Rails Tutorial (3)

Examples of commands to generate and delete controllers for Rails applications.

# Generate controller
$ rails generate controller StaticPages home help

# Delete controller
$ rails destroy controller StaticPages home help

Share this article

Shou Arisaka Nov 16, 2025

🔗 Copy Links