Ruby PATH Setup for Windows

Ruby is installed at C:\Ruby34-x64 but needs to be added to your system PATH permanently.

Current Status

Ruby is working - Version 3.4.7
Gem is working - Version 3.6.9
⚠️ PATH needs to be updated - Currently only works in this session

Quick Fix (Current Session Only)

The PATH has been updated for this terminal session. Ruby and gem commands will work until you close this terminal.

To make Ruby available in all terminal sessions:

Method 1: Using System Properties (GUI)

  1. Press Win + X and select System
  2. Click Advanced system settings
  3. Click Environment Variables
  4. Under System variables, find and select Path
  5. Click Edit
  6. Click New
  7. Add: C:\Ruby34-x64\bin
  8. Click OK on all dialogs
  9. Restart your terminal (or restart Cursor)

Method 2: Using PowerShell (Run as Administrator)

[Environment]::SetEnvironmentVariable(
    "Path",
    [Environment]::GetEnvironmentVariable("Path", "Machine") + ";C:\Ruby34-x64\bin",
    "Machine"
)

Then restart your terminal.

Method 3: Using Command Prompt (Run as Administrator)

setx /M PATH "%PATH%;C:\Ruby34-x64\bin"

Then restart your terminal.

Verify Installation

After updating PATH and restarting your terminal, verify:

ruby --version
gem --version

You should see:

Next Steps

Once PATH is permanently set:

  1. Install Jekyll and Bundler:
    gem install jekyll bundler
    
  2. Install project dependencies:
    bundle install
    
  3. Run Jekyll server:
    bundle exec jekyll serve
    

Troubleshooting

Ruby still not found after updating PATH

  1. Close and reopen your terminal/Cursor completely
  2. Verify PATH was added correctly:
    $env:PATH -split ';' | Select-String -Pattern "Ruby34"
    
  3. If not found, try Method 1 (GUI) as it’s most reliable

Permission errors

Multiple Ruby installations

If you have multiple Ruby installations, make sure C:\Ruby34-x64\bin is first in your PATH, or remove other Ruby installations.