Couldn\'t find an answer to this. Running OS X Yosemite Beta v2
When following compass install guide ensure that your gem is up-to-date
gem update --sy
If you have XCODE installed, you need to open. Because the OS needs to add components and these are added when you open the app.
Try again run
sudo gem install compass
Enjoy!