Getting started with SASS and Compass on Debian

1. Setting up SASS

It's been a long time since I've played around with any Ruby code so the first thing I wanted to do was feel I could comfortably install and run the required gems as a non root user (in a simliar way to local::lib works with Perl) on my Debian machine as this has annoyed me in the past when using things like svn2git.

To achieve this:

$ cd # enter home directory
$ mkdir -p .gems/bin

Now edit your .bashrc file (or equivilent) and add the following lines:

export GEM_HOME=~/.gems
PATH="$PATH:~/.gems/bin"

Next up, in order for SASS to take advantage of inotify, so it can monitor your .scss files more efficiiently, in Debian you need to install the 'librb-inotify-ruby' package, which I found by googling "debian inotify ruby" after noticing that there were problems loading the 'rb-inotify' module.

The next thing to do is restart your console session and you'll be ready to start the SASS tutorial.