How to fix SASS for OS X Lion

Last week I upgraded to the latest version of Apple’s big cats. And of course, with upgrades like these, there are some software incompatibilities. In this case, since this upgrade, SASS--watch command threw a segmentation fault error.

After some nudging around the web, it became apparent that the error was not in SASS, but in this thing called FSSM. And FSSM is apparently a gem that can be installed.

The specific error was this:

/Library/Ruby/Gems/1.8/gems/sass-3.1.4/vendor/fssm/lib/fssm/backends/fsevents.rb:27: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

To fix this error, you should run the following command:

gem install fssm

If you then run the --watch command, it shouldn’t crash anymore! Woohoo! It does give the following notice.

FSSM -> An optimized backend is available for this platform!
FSSM ->     gem install rb-fsevent

So just to be sure, you can also run the following:

gem install rb-fsevent

I’m not proficient at this by any measure, but I hope this keeps on behaving correctly, even with point updates to Lion.

If you want to start out with SASS, it’s pretty easy to get it on your Mac. Have a look at my SASS Watcher post for instructions and run watch commands from the Finder.