This is because you do not have the Xcode Command Line developer tool on your OSX. For Sass, Compass, and NPM, you need to have Xcode on Mac OSX.
Install it using this command: xcode-select --install . You can also install it through the App Store. Usually, it takes time to download and install Xcode.
After installation is complete, you must use the sudo xcodebuild -license to accept the Xcode license agreement. After accepting it, you can easily install Sass using the sudo gem install sass .
source share