无法在Mac OS X mavericks上使用brew安装imagemagick

问题描述:

我在Mac OS X版本10.9.4上使用Homebrew v0.9.5

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

当我运行命令:brew install imagemagick时,发生了此错误。

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

我添加了--disable-openmp选项,它也不顺利。

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

$ brew install imagemagick --disable-openmp

brew医生指令结果没有问题。

brew doctor command result has no problem.

$ brew doctor
Your system is ready to brew.


你试过

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

显然在Mac OS 10.8(Mountain Lion)上似乎已经解决了这个问题。以前我用brew versions imagemagick和git checkout e68e443检查了最新的imagemagick brew食谱,参见这里这里

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