読者です 読者をやめる 読者になる 読者になる

君たちは永遠にそいつらより若い

技術と音楽と日々のこと。

Mac OS X 10.7.5で、Image Magick のインストールが上手く行かなかった



どうってこと無いことも記録するシリーズ。

Mac OS X 10.7.5で、以下のエラーで Image Magick のインストールが上手く行かなかった。

Error: Download failed: http://slackware.sukkology.net/packages/jasper/jasper-1.900.1.zip

brew update してなかっただけでした。

失敗

$ brew install ImageMagick
==> Installing imagemagick dependency: jpeg
==> Downloading http://www.ijg.org/files/jpegsrc.v8c.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/jpeg/8c
==> make install
/usr/local/Cellar/jpeg/8c: 18 files, 1.4M, built in 27 seconds
==> Installing imagemagick dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-3.9.5.zip
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/3.9.5 --mandir=/usr/local/Cellar/libti
==> make install
/usr/local/Cellar/libtiff/3.9.5: 236 files, 3.6M, built in 35 seconds
==> Installing imagemagick dependency: little-cms
==> Downloading http://www.littlecms.com/1/lcms-1.19.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/little-cms/1.19 --disable-debug
==> make install
/usr/local/Cellar/little-cms/1.19: 21 files, 872K, built in 24 seconds
==> Installing imagemagick dependency: jasper
==> Downloading http://slackware.sukkology.net/packages/jasper/jasper-1.900.1.zip

curl: (7) couldn't connect to host
Error: Download failed: http://slackware.sukkology.net/packages/jasper/jasper-1.900.1.zip

brew update

$ brew update
Initialized empty Git repository in /usr/local/.git/
remote: Finding bitmap roots...
remote: Reusing existing pack: 127003, done.
remote: Counting objects: 8648, done.
remote: Compressing objects: 100% (6811/6811), done.
remote: Total 135651 (delta 5556), reused 4541 (delta 1805)
Receiving objects: 100% (135651/135651), 33.21 MiB | 321 KiB/s, done.
Resolving deltas: 100% (92866/92866), done.
From https://github.com/mxcl/homebrew
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      go         -> origin/go
 * [new branch]      master     -> origin/master
HEAD is now at b335572 v8 3.21.17
Already up-to-date.

成功

$ brew install ImageMagick
Warning: Your Xcode (4.2.1) is outdated
Please update to Xcode 4.6.3.
Xcode can be updated from the App Store.
==> Installing dependencies for imagemagick: pkg-config, jpeg
==> Installing imagemagick dependency: pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.28.lion
######################################################################## 100.0%
==> Pouring pkg-config-0.28.lion.bottle.1.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.28: 10 files, 644K
==> Installing imagemagick dependency: jpeg
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.lion.bottle.
######################################################################## 100.0%
==> Pouring jpeg-8d.lion.bottle.tar.gz
/usr/bin/install_name_tool: object: /usr/local/Cellar/jpeg/8d/lib/libjpeg.8.dylib malformed object (unknown load command 11)
/usr/bin/install_name_tool: object: /usr/local/Cellar/jpeg/8d/bin/jpegtran malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /usr/local/Cellar/jpeg/8d/bin/djpeg malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /usr/local/Cellar/jpeg/8d/bin/cjpeg malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /usr/local/Cellar/jpeg/8d/lib/libjpeg.8.dylib malformed object (unknown load command 11)
🍺  /usr/local/Cellar/jpeg/8d: 18 files, 788K
==> Installing imagemagick
==> Downloading http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.8.7-0.ta
######################################################################## 100.0%
==> ./configure --disable-osx-universal-binary --prefix=/usr/local/Cellar/imagemagick/6.8
==> make install
🍺  /usr/local/Cellar/imagemagick/6.8.7-0: 1435 files, 22M, built in 2.1 minutes