Search code examples
sublimetext2compass-sassrbenv

How to configure Compass build with rbenv in Sublime Text 2?


Trying to build a SASS file under OSX with rbenv and the default Compass build file results in:

/bin/sh: compass: command not found
[Finished in 0.2s with exit code 127]

How to fix?


Solution

  • Add this to your ~/Library/Application Support/Sublime Text 2/Packages/Compass/Compass.sublime-build file:

    "osx": {
        "path": "/usr/local/bin:/Users/USERNAME/.rbenv/shims:$PATH"
    },
    

    You may have to restart Sublime.