ImageMagick 7 with RMagick 2.16 on MacOS Sierra Can't find MagickWand.h

前端 未结 2 1664
抹茶落季
抹茶落季 2020-12-23 10:03

I upgraded to imagemagick-7.0.4-3.sierra and now my previously installed RMagck 2.16 fails. I checked for MagicWand:

$ find /usr/local -name MagickWand.h /usr

相关标签:
2条回答
  • 2020-12-23 10:11

    dyson's solution didn't quite work for me. I found that in addition to installing imagemagick@6, I also need to install pkg-config and then set PKG_CONFIG_PATH.

    brew install imagemagick@6 pkg-config
    PATH="/usr/local/opt/imagemagick@6/bin:$PATH" PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig gem install rmagick -v '2.13.4'
    
    0 讨论(0)
  • 2020-12-23 10:19

    I have just encountered and solved this issue on a new Mac running Sierra. There seems to be no solution for ImageMagick 7 at this time.

    1. Uninstall existing imagemagick if needed

    2. Install version 6:

      brew install imagemagick@6

    3. Since this is keg-only, you should then force-link it:

      brew link --force imagemagick@6

    This installed imagemagick version 6.9.7-4 for me.

    Afterwards, the gem then installed successfully. I am including the version numbers for future readers:

    Installing rmagick 2.13.4 with native extensions

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