Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I do a proper Compass installation on Windows 7?

When I run compass from anywhere besides Ruby's bin folder, it comes back with an error:

'compass' is not recognized as an internal or external command, operable program or batch file.

Has this happened to anyone else? I read somewhere that maybe there needs to be a file in Windows32, compass.exe maybe, I'm not sure because there's nothing that says compass in there. Any ideas why the installation wasn't able to do it?

Also I should note that I'm using Windows 7 on a Mac via Parallels.

like image 549
Travis Heeter Avatar asked Jan 11 '13 22:01

Travis Heeter


2 Answers

Make sure you have ruby installed on your windows machine. Once that is done open Command Prompt with Ruby and type gem install haml sass compass CMD with Ruby

like image 138
djthoms Avatar answered Nov 06 '22 21:11

djthoms


@djthoms's response worked, but as it turns out I had ruby installed incorrectly as I did not check the box that said "create ruby in the PATH" (or something to that extent), which makes 'ruby' a recognizable command.

Again, during the installation process of ruby to windows, you must check a box in order for the installation to work correctly - it is not already checked.

like image 40
Travis Heeter Avatar answered Nov 06 '22 21:11

Travis Heeter