I was trying to use Capifony, which requires Capistrano, which requires Ruby. But my apt version of ruby was old and was throwing syntax errors. So then I installed RVM and did
I guess you need a wrapper:
rvm wrapper ruby-1.9.3-p194@myapp php sass compass
this will generate wrappers which will call proper ruby(rvm) environment, use them like:
sass:
bin: /usr/local/rvm/bin/php_sass
#apply_to: "\.scss$"
compass:
bin: /usr/local/rvm/bin/php_compass
apply_to: "\.scss$"
Solution
Just use lessphp. It can be installed with Composer, and then in config.yml:
lessphp:
php: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
apply_to: "\.less"