Error installing Rmagick on Mountain Lion

后端 未结 8 1249
温柔的废话
温柔的废话 2020-12-12 11:57

I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick.

相关标签:
8条回答
  • 2020-12-12 12:05

    I know this is a pretty old issue but it did happen to me recently. I am posting this for those that have tried all other answers and weren't able to resolve so far. Bumping the rmagick gem to version 2.13.4 has worked with Ruby 1.9.3 on MacOS.

    Hope it helps!

    0 讨论(0)
  • 2020-12-12 12:10

    It appears it's a problem reported on the Homebrew github repo (https://github.com/mxcl/homebrew/issues/16625) blaming rmagick itself not supporting newer versions of imagemagick. On that same issue (https://github.com/mxcl/homebrew/issues/16625#issuecomment-11519383), you can find this link: https://coderwall.com/p/wnomjg which actually worked for me. This is what he does:

    cd /usr/local/Cellar/imagemagick/6.8.0-10/lib
    ln -s libMagick++-Q16.7.dylib   libMagick++.dylib
    ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
    ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib
    

    Hope this helps.

    0 讨论(0)
  • 2020-12-12 12:16

    The latest version of rmagick (2.13.2) now supports imagemagick 6.8

    • https://github.com/rmagick/rmagick/pull/63
    • http://github.com/rmagick/rmagick/blob/master/ChangeLog
    • http://singlebrook.com/blog/rmagick-resurrected
    0 讨论(0)
  • 2020-12-12 12:16

    Here is what worked for me on macOS Sierra.

    brew uninstall pkg-config
    brew install pkg-config
    brew unlink pkg-config
    brew link pkg-config
    
    0 讨论(0)
  • 2020-12-12 12:19

    From other answers:

    PKG_CONFIG_PATH=/usr/local/Cellar/imagemagick/6.8.0-10/lib/pkgconfig C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.8.0-10/include/ImageMagick gem install rmagick -v '2.13.1'
    

    See https://stackoverflow.com/a/10645011/1197775 to know how to get these dirs.

    0 讨论(0)
  • 2020-12-12 12:22

    check my answer to openssl problem https://stackoverflow.com/a/13958931/497756 - just make sure that imagemagick was compiled including *.pc files - which is the default for most software but not all of it.

    0 讨论(0)
提交回复
热议问题