Install ImageMagicK on OSX Lion
Yay! Not only has Apple taken us a few steps back in terms of the operating system, but they've also broken my favorite memory-leaking image-manipulation tool - ImageMagick!
Thankfully, I've come up with a way to get it working again (although the process is slightly bassackwards):
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 now?)
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
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 now?)
(Re)install ImageMagick
$ port install imagemagick
Without a Package Manager
Download Homebrew
See Part 1
About Seth
Seth Vargo is a Distinguished Software Engineer at Google. Previously he worked at HashiCorp, Chef Software, CustomInk, and some Pittsburgh-based startups. He is the author of Learning Chef and is passionate about reducing inequality in technology. When he is not writing, working on open source, teaching, or speaking at conferences, Seth advises non-profits.