Masaru Kitajima Masaru Kitajima - 23 days ago 36
Ruby Question

Can't complie SCSS after updating to OS X 10.13

I've bee unsing Dreamweaver and Koara to compile scss files by compass.

But since I updated my Mac to OS X 10.3 (HighSierra) I got those error messages.


Users/MyAccount/Desktop/test/sass/mtnCommon.scss
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'compass' (>= 0) among 15 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/MyAccount/.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/compass:17:in `
'


Please let me know how to solve this.

Answer Source

Steps to fix this problem:

  1. Open Terminal
  2. Install Homebrew: 


    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  3. Do not close Terminal. Open Mac Appstore and check Update, install all XCode Command Line Tools updates

  4. Back to Terminal
  5. Install Ruby:


    brew install rbenv ruby-build

  6. Install SASS gem:


    sudo gem install sass