views:

421

answers:

2

Trying to set up LESS for css (see http://lesscss.org/index.html) on my Windows box, and I've installed ruby and rubygems and I've followed the instructions here (http://lesscss.org/docs) exactly.

I have a file 'teststyle.less' in C:\ and in command when I type

lessc teststyle.less

to compile into a .css file, I get the error

"The filename, directory name, or volume label syntax is incorrect."

Out of those familiar with LESS, do any of you have a solution to my problem? Did I mess up the install?

Thanks
-Mojave Storm

+1  A: 

I think I found the problem. In my first installation I installed to C:\Program Files\Ruby so I uninstalled and tried the default 'C:\Ruby' install path. Seems to fix the problem and it now works correctly. Thanks.

Mojave Storm
+1  A: 

You should look at http://www.dotlesscss.com/, less ported to C# and specifically designed for .NET. You can use either a handler or compile.

Been using it for about six months, it's great.

Oops...saw windows and assumed dot net, perhaps that's not your environment. If not, never mind...

Rob
:) I'll be sure to keep that in mind, thanks
Mojave Storm
Just so you're aware the ruby implementation is no longer under active development. It is being replaced by http://github.com/cloudhead/less.js which runs under node.js. as Rob points out, dotless is a great way to compile your .less files on windows without requiring you to install ruby.
tgmdbm