October 3, 2017 - 11 comments

SASS won’t build in Sublime Text Mac High Sierra [Errno 2] No such File or Directory

You just tried building .sass or .scss from Sublime Text on a Mac and you're seeing an error [Errno 2] No such File or Directory. Me too.

If you've recently updated to OS High Sierra, the solution is likely very simple. This works for both SublimeText 2 and 3.

You'll need to reinstall SASS from Terminal.

  1. Open Terminal: CMD + SPACE to launch Spotlight — type "Terminal" and hit enter
  2. Check Ruby version: Ruby is bundled in OSX type:
    ruby -v

    You should see something like:

    ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
  3. Install SASS
    sudo gem install sass
  4. Enter your password and you're all set.
    Once it's finished installing, jump back to Sublime Text (2 or 3) and do your business!


If this worked for you please give a heads up in the comments 🙂

Published by: Michael in Website Development, Wordpress


October 13, 2017 at 12:25 pm

Hi, I get an error like this:

Building native extensions. This could take a while…
ERROR: Error installing sass:
ERROR: Failed to build gem native extension.

current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.18/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20171013-15083-133u0bu.rb extconf.rb
mkmf.rb can’t find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.18 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/ffi-1.9.18/gem_make.out

I’m on latest version of High Sierra (10.13). Can you suggest a solution?

    October 13, 2017 at 12:33 pm

    Hey Adam,

    Is Ruby up to date?
    ruby -v

October 13, 2017 at 12:41 pm

Hi, Michael, yes it is
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]

    October 13, 2017 at 1:18 pm


    Current stable Ruby version is 2.4.2 so try updating that first.

    If that doesn’t do it, you may need Xcode Command Line developer tool.
    xcode-select –install
    Or you can install it via App Store. It’ll take a bit to download.

    If you install through terminal, you’ll then need to accept the license agreement.
    sudo xcodebuild -license

    Then you can reinstall SASS.
    sudo gem install sass

October 13, 2017 at 2:23 pm

Thanks Michael, updating some stuff finally did the trick for me!

    October 13, 2017 at 5:50 pm

    Awesome—glad you got it working!

    If you have a chance, would you mind posting a review on my Google Business page?


October 13, 2017 at 5:17 pm

Hey can you help me out? I’ve tried your method and the one in Github, but no luck.
– ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin17]
– Done installing documentation for rb-fsevent, ffi, rb-inotify, sass-listen, sass after 6 seconds

Any clue? Thanks!

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs’: Could not find ‘sass’ (>= 0) among 15 total gem(s) (Gem::LoadError)
Checked in ‘GEM_PATH=/Users/roberto/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0′, execute `gem env` for more information
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec’
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem’
from /Applications/Koala.app/Contents/Resources/app.nw/bin/sass:17:in `

    October 13, 2017 at 5:51 pm


    You have Xcode installed and up to date already?

      October 13, 2017 at 5:53 pm

      I do, even I tried to update Xcode command line and it says I dont need it anymore because of my OS, not sure why though.

        October 13, 2017 at 6:03 pm


        You might try uninstalling and reinstalling Ruby. Use:
        gem list

        first so you can grab those afterward.

        Also check these out:

        You might be running into an issue with RVM holding an older version of Ruby.

        Beyond that, I’m kind of at a loss unfortunately. When you find a fix, please let me know, very curious. Didn’t realize High Sierra was literal 😉

          October 19, 2017 at 3:41 pm

          Hey Mike I was never able to make it work, I tried everything I could until yesterday that I did the Dreamweaver update, it made it work back again (DW only tho) but thanks for the help! no idea what is missing with Koala!

Leave a Reply