I am trying to install GraphicsMagick on Mountain Lion and having problems. I tried all the things that I could search for in blogs and other stackoverflow questions but nothing
Try removing everything and start again:
brew uninstall imagemagick graphicsmagick libpng jpeg brew cleanup -s brew install graphicsmagick
Solved me some issues recently