Compass module works amazingly in linux. Thanks guys.
But, when it comes to Windows, its getting impossible to work!
I installed compass using gem. Assigned the path "C:\Ruby192\bin\compass" to the executable path! And it just does not work.

I tried compass.bat instead of compass also. Does not work. It says its not executable.

compass works from commandline, which means PATH is set.

Please help solve this issue.

Comments

5t4rdu5t’s picture

StatusFileSize
new29.63 KB
new2.71 KB

After long hours of debugging, trial and error, I've made this work on Windows 7!

Here's a patch for HEAD revision of the module, and a screenshot of the settings page I'm using.

To install Compass I've followed the simple instructions shown on http://www.ladysign-apps.com/blog/code/css/installing-sass-compass-for-o.... Only thing is in windows you don't use "sudo" for commands. :)

I needed to restart my computer after installing ruby/gems/compass to get the ruby bin dir included into %PATH%.

Apart from the compass module modifications, everything else worked pretty much out of the box.

5t4rdu5t’s picture

Forgot to mention the module's version I'm using is 6.x-1.0-beta3.

eigentor’s picture

I tried to get this to work (Drupal 7 version of the module) on Windows as well. The patch from 5t4rdu5t should work for D7 with a minor reroll. As far as I can see, the compass.inc has hardly changed in the Drupal 7 version at all. So I applied the patch manually.

Still I did not get it to work, as I have the even worse situation that I installed Ruby inside Cygwin, and cygwin inside the "Program Files" directory (silly me). So I even got spaces in the patch to compass.bat, I found no way of passing the spaces to the module, no "Program Files" or 'Program Files' did the trick.

eric.chenchao’s picture

Try to use double quotes to quote the whole path in windows.

For example: "C\Program Files\path to your folder"

oliver huynh’s picture

Status: Active » Reviewed & tested by the community

The patch runs well. Thanks!