Mac Rmagick won't install with Xcode 4.2

淺唱寂寞╮ 提交于 2019-11-27 11:15:36

I tried your solution (full of hope) but It did not work for me unfortunately. Finally I managed to make it work by reinstalling imagemagick without openmp support (this is the library responsible for lgomp)

using Homebrew:

brew install imagemagick --disable-openmp

then rmagick installed without any problems.

I tried to download and install 4.1 for lion and this didn't even install (without a proper error message). Now a colleague gave me this great link to GCC for Mac which worked like a charm: https://github.com/kennethreitz/osx-gcc-installer

Don't forget to download the v2 if you run on > 10.7.0

For people who want source installation, you can download the source code repository and issue this command in the imagemagick source code directory.

./configure --disable-openmp

It will work similar to the brew version above but with source code compilation instead.

I ran into this problem using Macports but there are no guides so I'll add one here:

  1. uninstall ImageMagick: 'sudo port uninstall ImageMagick' // and any dependents
  2. download Portfile-ImageMagick.diff from here
  3. Follow guide (transcribed below): 'cd $(port dir ImageMagick)' 'patch -p0 < (downloaded patch file)'
  4. 'sudo port install ImageMagick +no_openmp'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!