Bash – Brew install imagemagick curl fails

bashcurlimagemagickmac-osx

I am getting the following error when trying to install imagemagick via brew on OS X Mountain Lion. It appears to be a curl error – hence why it's on SF not another of the Stack Exchange sites.

brew install imagemagick
==> Installing imagemagick dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.tar.gz

curl: (7) couldn't connect to host
Error: Download failed: http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.tar.gz

Is it possible to pick an alternative download location when running the brew install imagemagick command?

Is this a known problem, I have searched for similar issues but none seem to be the same.

Best Answer

I was having this exact problem (today as well, found your post while searching for a result)

The following worked for me:

cd /Library/Caches/Homebrew
curl -O http://fossies.org/unix/privat/pkg-config-0.27.tar.gz
brew install imagemagick

Basically Homebrew will not re-download a file that it has cached, so its just about downloading the file from somewhere else (finding it was the hard part)