homebrew install imagemagick

Posted by wxianfeng Sat, 10 Sep 2011 14:02:00 GMT

环境:mac os x lion
homebrew是用ruby写的脚本,发现和rvm极其相似

安装 homebrew

>/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

安装imagemagick

>brew install imagemagick

安装到libtiff 库时 出错

curl: (7) couldn't connect to host
Error: Failure while executing: /usr/bin/curl -f#LA Homebrew\ 0.8\ (Ruby\ 1.8.7-249;\ Mac\ OS\ X\ 10.7.1) ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.9.5.zip -o /Users/wangxianfeng/Library/Caches/Homebrew/libtiff-3.9.5.zip

fixed :

>/usr/bin/curl http://download2.osgeo.org/libtiff/tiff-3.9.5.zip -o ~/Library/Caches/Homebrew/libtiff-3.9.5.zip

再次安装:

>brew install imagemagick

最后测试安装成功:

wxianfeng:inono wangxianfeng$ convert --version
Version: ImageMagick 6.7.1-1 2011-09-10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP

可以查看出brew安装了下面的库:

wxianfeng:inono wangxianfeng$ brew list
imagemagick jasper jpeg libtiff little-cms

see:
https://github.com/mxcl/homebrew/wiki/installation
https://github.com/mxcl/homebrew/pull/5168