Last time I face to a problem with Install ImageMagick for PHP on Mac what take me a lot of time to manage to get it work well. It ‘s quite simple if you know how to do. Today I will share you this simple tips hope it will save you a little time.
1. Install ImageMagick Using Homebrew
If you are using Homebrew as a package manager for Mac, you’ll need to perform the following steps to get ImageMagicK working on OSX Mountain Lion:
Remove any existing versions of ImageMagick
$ brew uninstall imagemagick
Update Homebrew
$ brew update
Install the latest Xcode from the App Store (it’s free)
Clean up using the command
$ brew cleanup
ensure brew is roaring
$ brew doctor
And delete any files that end in .a or .la
(Re)install ImageMagick
$ brew install imagemagick
2. Install ImageMagick Using MacPorts
If you are using MacPorts as a package manager for Mac, you’ll need to perform the following steps to get ImageMagicK working on OSX Mountain Lion:
Remove any existing versions of ImageMagick:
$ port uninstall imagemagick
Update MacPorts
$ port selfupdate
Install the latest Xcode from the App Store (it’s free)
(Re)install ImageMagick
$ port install imagemagick