Less Compiler for Linux [closed] Less Compiler for Linux [closed] linux linux

Less Compiler for Linux [closed]


Although using node.js version is recommended, you can install less as ruby gem:

sudo apt-get install rubygems1.8 ruby1.8-devsudo gem install rubygems-updatesudo gem update rubygemssudo gem install less

and than use lessc which is in /var/lib/gems/1.8/bin/lessc, so you may want to create symlink:

sudo ln -s /var/lib/gems/1.8/bin/lessc /usr/bin/

or add ruby gems dir to PATH variable:

export PATH=/var/lib/gems/1.8/bin:$PATH

EDIT:

Using lessc as described here:

Command-line usage

Less comes with a binary, which lets you invoke the compiler from the command-line, as such:

$ lessc styles.less

This will output the compiled CSS to stdout, you may then redirect it to a file of your choice:

$ lessc styles.less > styles.css

To output minified CSS, simply pass the -x option.


You can also use this : http://wearekiss.com/simpless with a beautiful GUI and the watching process to automatically update the file when editing.


in fedora or centos distribution you should

$ sudo yum install rubygems$ sudo yum install gcc-c++$ sudo yum install ruby-devel     $ sudo gem install less$ sudo gem install therubyracer $ lessc yourLessFile.less > yourCssFile.css