Mac Mountain Lion 下安装 ImageMagick 和 RMagic

xmonkeycn · August 03, 2012 · Last by shiren1118 replied at December 04, 2012 · 5320 hits

升级到 Mountain Lion 以后突然发现 ImageMagick 不能用了。网上搜了一下,找到这个教程,做下了比较靠谱的解决了,除了中间撞墙。 记录一下以分享。

http://tektastic.com/2012/07/getting-rmagic-and-friends-to-work-on.html

Quick checklist:

  1. Install Mountain Lion
  2. Install XCode 4.4
  3. Install command line tools from XCode 4.4 Preferences dialog
  4. Install XQuartz http://xquartz.macosforge.org/trac/wiki/X112.7.2
  5. In terminal run a. brew update b. brew uninstall imagmagick c. brew install --fresh imagemagick d. wipe out your ~/.rvm folder e. reinstall RVM and install the latest ruby 1.9.3-p-194
  6. run "bundle" in the project folder
  7. run "rake" and rejoice

其中 5.3 撞墙了。。。 ''' brew install --fresh imagemagick
==> Downloading http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.7.7-6.tar.bz2 curl: (56) Recv failure: Connection reset by peer '''

自己另外翻墙下载后,放到/Library/Caches/Homebrew 解决撞墙问题。

http://waix.dl.sourceforge.net/project/machomebrew/Bottles/imagemagick-6.7.7-6.mountainlion.bottle.1.tar.gz 从这个地址下载最快。然后移动

mv imagemagick-6.7.7-6.mountainlion.bottle.1.tar.gz /Library/Caches/Homebrew/,然后再install就好了

You need to Sign in before reply, if you don't have an account, please Sign up first.