Today I tried to to install Compass/Sass on my computer. I have made no head way what so ever. I installed ruby, which works fine. But to run a "gem" command in the command prompt, do I have to have the gems installed? Because when I tried to do that, it wouldn't do what it should. Could someone please enlighten me on how to install gems on Windows, and maybe even how to get Compass/Sass working on a Windows computer?
Here it is how you can install Compass/Sass on Windows:
1) Install Ruby from http://rubyinstaller.org/ 2) Go to Windows Command Line(Start -> cmd) 3) Change directory to Ruby bin Folder. Eg C:\Ruby193\bin (It will be different to your version and installation directory) 4) Type ruby -v and if it get back with Ruby Version Number. Bravo, you are got to go.
Staying in the same directory (C:\Ruby193\bin)
5) Type gem install sass (It will install sass) 6) Type gem install compass (It will install compass) 7) Type compass version (If compass is running. It will get back with compass version and other info)
When I started to figure out how to install SASS on Windows, I found it very confusing for two main reasons:
1) all that Ruby stuff (installation, command line, etc.) 2) most tutorials were for Mac
I've found the best/easiest way for Windows users is Compass.app and I strongly recommend it (no Ruby stuff involved). Check it out: SASS on Windows, the easy way
I did try Scout too, but I found it a little more tricky than Compass.app, and like @sliver37, I also had some issues with Java.
1. Ruby installer - http://rubyinstaller.org/downloads/ 2. When the installation finishes, open a Command Prompt window (Win+R then type “cmd” and press enter) Then type this:
I tired to compile less or sass width shell Command.
So i create a gui, support sass, compass, less and coffeescript. Out of the box to use and cross-platform. And it's open source.
Get it at: http://koala-app.com
You can use Prepros App for windows. It can compile less, sass, scss, coffee, markdown, haml, stylus file and It can also live refresh the browser.
http://alphapixels.com/prepros
I've already found one minor problem with markdown compiling... I include anchor tags (<a name="anchor">text</a>) within my markdown, and the compiler translates that into <a name="anchor">text</a>.
Thanks,
-Chris
i,e
this will help command line to find commands you want.
1) Install Ruby from http://rubyinstaller.org/
2) Go to Windows Command Line(Start -> cmd)
3) Change directory to Ruby bin Folder. Eg C:\Ruby193\bin (It will be different to your version and installation directory)
4) Type ruby -v and if it get back with Ruby Version Number. Bravo, you are got to go.
Staying in the same directory (C:\Ruby193\bin)
5) Type gem install sass (It will install sass)
6) Type gem install compass (It will install compass)
7) Type compass version (If compass is running. It will get back with compass version and other info)
Thank you :)
Unfortunately it's not being updated/maintained far as I can tell but it works great.
The only issue I had was updated java (jr7) and it was still trying to find "jr6", just had to change it inside a file in the scout folder.
Hopefully someones working on an awesome app for windows soon.
1) all that Ruby stuff (installation, command line, etc.)
2) most tutorials were for Mac
I've found the best/easiest way for Windows users is Compass.app and I strongly recommend it (no Ruby stuff involved). Check it out: SASS on Windows, the easy way
I did try Scout too, but I found it a little more tricky than Compass.app, and like @sliver37, I also had some issues with Java.
1. Ruby installer - http://rubyinstaller.org/downloads/
2. When the installation finishes, open a Command Prompt window (Win+R then type “cmd” and press enter)
Then type this:
thats it you are done..
Source
@menunawar I installed Ruby 1.9.3 from that link and input the command but I got an error:
'ruby' is not recognized as an internal or external command, operable program or batch file.I used sahilmepani's method and that worked for me so thanks everyone!
For anyone still trying to install sass/compass, just use Scout. Scout is a sass/compass GUI. Installing and running it is as simple as can be.
I tired to compile less or sass width shell Command. So i create a gui, support sass, compass, less and coffeescript. Out of the box to use and cross-platform. And it's open source. Get it at: http://koala-app.com
mixture.io - public beta but great!
You can install the compass app, http://compass.handlino.com/
Just $10, just bought it and great so far.
You can use Prepros App for windows. It can compile less, sass, scss, coffee, markdown, haml, stylus file and It can also live refresh the browser. http://alphapixels.com/prepros
@Subash Awesome!!!
Love the popup notifications when errors occur and live refresh.
@Subash!
I've already found one minor problem with markdown compiling... I include anchor tags (
<a name="anchor">text</a>) within my markdown, and the compiler translates that into<a name="anchor">text</a>.I didn't test other HTML markup, but it should be allowed.
And, very nice work!
Thanks, @chrisburton and @Mottie,
@Mottie fixed the issue https://github.com/sbspk/Prepros/commit/2108dbc3d548ec36559116403f12316104cf9fc2.
It will be available in the upcoming release.