Can't install imagemagick with brew on Mac OS X mavericks

Gogo Tanaka picture Gogo Tanaka · Aug 23, 2014 · Viewed 26.6k times · Source

I am using Homebrew v0.9.5 on my Mac OS X version 10.9.4

When I run the command: `brew install imagemagick, this error occurred.

$ brew install imagemagick
==> Installing dependencies for imagemagick: libpng, freetype
==> Installing imagemagick dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz

curl: (7) Failed connect to downloads.sf.net:443; Operation timed out
Error: Failed to download resource "libpng"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz

curl: (7) Failed connect to downloads.sf.net:443; Operation timed out
Error: Failed to download resource "libpng"
Download failed: https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz

I have added --disable-openmp option, it also doesn't go well.

$ brew install imagemagick --disable-openmp

brew doctor command result has no problem.

$ brew doctor
Your system is ready to brew.

Answer

0x4a6f4672 picture 0x4a6f4672 · Sep 1, 2014

Have you tried a

$ brew update
$ brew install imagemagick --disable-openmp --build-from-source

Apparently that seemed to fix it for me on Mac OS 10.8 (Mountain Lion). Previously I checked out the latest imagemagick brew recipe with "brew versions imagemagick" and "git checkout e68e443", see here and here