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.
Permanent Fix (Recommended)
To make Ruby available in all terminal sessions:
Method 1: Using System Properties (GUI)
- Press
Win + Xand select System - Click Advanced system settings
- Click Environment Variables
- Under System variables, find and select Path
- Click Edit
- Click New
- Add:
C:\Ruby34-x64\bin - Click OK on all dialogs
- 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:
- Ruby 3.4.7
- Gem 3.6.9
Next Steps
Once PATH is permanently set:
- Install Jekyll and Bundler:
gem install jekyll bundler - Install project dependencies:
bundle install - Run Jekyll server:
bundle exec jekyll serve
Troubleshooting
Ruby still not found after updating PATH
- Close and reopen your terminal/Cursor completely
- Verify PATH was added correctly:
$env:PATH -split ';' | Select-String -Pattern "Ruby34" - If not found, try Method 1 (GUI) as it’s most reliable
Permission errors
- Make sure you’re running PowerShell/Command Prompt as Administrator when using Method 2 or 3
- Or use Method 1 (GUI) which doesn’t require admin rights
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.