Dealing with Ruby, Gems, PATH and Windows

I recently wanted to start styling a repo on my PC and wanted to use SASS.

WORD OF CAUTION: I am using Windows 7 and actual results may vary.

Little did I know what I was in for when trying to deal with Ruby on a PC.

The installation of Ruby, and later the SASS Gem all seemed easy and straight forward enough, but when it came time to let Grunt work its magic and compile a .css file I was getting an error:

Warning: You need to have Ruby and Sass installed and in your PATH for this task to work.

Seemed straight forward enough and my favorite search engine was indicating there were quite a few other people that were running into the problem – needing to add to the PATH.

Some explanations seem to overly complicate matters, and very simply you need to:

1)  Open your System Settings so you can edit your “Environment Variables”systemSettings

– if you don’t know what that means, click on your start button and enter “environment variables” in the search bar that says ‘Search programs and files’. There is a very high possibility that even before you finish typing “environment” a result will appear that says ‘Edit the system environment variables’

2) After opening the Environment Variables window select the “PATH” variable and click Edit.


3) Include the path to where your Gems are stored (semicolon separated).

For me, the path was C:\Ruby200-x64\lib\ruby\gems\2.0.0\gems so the path above would then be:



And with that, you are now ready to start utilizing all the Ruby Gems you can possibly imagine!


2 thoughts on “Dealing with Ruby, Gems, PATH and Windows

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s