Use the following command in Terminal to install Xcode command line tools (you don’t need the full application from the App Store)
xcode-select --install
Then install SASS and Compass with:
sudo gem install -n /usr/local/bin sass sudo gem install -n /usr/local/bin compass
then you can cd
into your directory of choice and run compass compile
to compile SASS into CSS.