This happens when your machine does not have ghostscript installed, to fix it simply do
Copybrew install ghostscript
brew install ghostscript