Although using a version of node.js recommended , you can install less as a ruby ββgem:
sudo apt-get install rubygems1.8 ruby1.8-dev sudo gem install rubygems-update sudo gem update rubygems sudo gem install less
but use lessc , which is located in /var/lib/gems/1.8/bin/lessc , so you can create a symbolic link:
sudo ln -s /var/lib/gems/1.8/bin/lessc /usr/bin/
or add ruby ββpearls to the PATH directory:
export PATH=/var/lib/gems/1.8/bin:$PATH
EDIT:
Using lessc as described here :
Command line usage
Less comes with binary, which allows you to call the compiler from the command line:
$ lessc styles.less
This will output the compiled CSS to stdout, you can then redirect it to the file of your choice:
$ lessc styles.less > styles.css
To output minimized CSS, just go -x .
Xaerxess Aug 30 '11 at 15:46 2011-08-30 15:46
source share