You have to scroll back to see the actual error. That could be anything from missing C libraries to a permission problem.
I actually stayed away from Scala for a while for this reason. SBT would blow up left and right. It's more mature now and with Play you can build performant web apps very quickly.
So some amount of leg work is bound to come up if you install many packages through homebrew.