F16 how to install "less" ruby gem?

Vít Ondruch vondruch at redhat.com
Wed Feb 22 09:39:57 UTC 2012


Dne 22.2.2012 10:26, T.C. Hollingsworth napsal(a):
> 2012/2/22 Michał Piotrowski<mkkp4x4 at gmail.com>:
>> I need lessc with --compress option to build bootstrap framework. I'm
>> not sure if "less" gem is appropriate for this task, but I wanted to
>> try it.
> The canonical version of lessc is written for node.js.  Looks like the
> ruby gem just runs that through some sort of node/v8 interpreter for
> Ruby.  It's probably a lot easier just to run it through node itself.
>
> I build node packages personally for now until I can whip it into
> shape for Fedora (which will be F18 or Node v0.8, whichever comes
> last.  I have patches for the 0.7 development branch almost ready to
> send upstream :-):
> http://nodejs.tchol.org/
>
> Enable the repository, then just `yum install nodejs-compat-symlinks
> npm` and `npm install -g less`.
>
> (You can also rebuild the SRPMs if you don't trust me, but then you
> still have the whole "building V8" problem. ;-)
>
> -T.C.

Actually it would be nice if less could use execjs gem, which choose 
whatever JS engine is available on your platform. But unfortunately, 
less gem has hardcoded dependency for V8.


Vit


More information about the devel mailing list