在MacOS Sierra上找不到magickwandh

时间:2022-06-16 09:01:12

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

我升级到imagemagick-7.0.4-3。sierra和我以前安装的RMagck 2.16失败。我检查MagicWand:

$ find /usr/local -name MagickWand.h /usr/local/Cellar/imagemagick/7.0.4-3/include/ImageMagick-7/MagickWand/MagickWand.h

$ find /usr/local -name MagickWand。h /usr/local/Cellar/imagemagick / 7.0.4-3 / include / ImageMagick-7 / MagickWand / MagickWand.h

So it seems to be there. Also I reinstalled and relinked pgk-config. Didn't help as well. Any ideas?

它似乎就在那里。另外,我重新安装并重新链接了pgk-config。没有帮助。什么好主意吗?

2 个解决方案

#1


111  

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.

我刚刚在运行Sierra的新Mac上遇到并解决了这个问题。目前似乎没有ImageMagick 7的解决方案。

  1. Uninstall existing imagemagick if needed

    如果需要,卸载现有的imagemagick

  2. Install version 6:

    安装版本6:

    brew install imagemagick@6

    酿造安装imagemagick@6

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

    因为这是只适用于桶的,所以你应该强制连接它:

    brew link --force imagemagick@6

    酿造imagemagick@6链接——力量

This installed imagemagick version 6.9.7-4 for me.

这为我安装了imagemagick版本6.9.7-4。

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

之后,宝石顺利安装。我包括未来读者的版本号:

Installing rmagick 2.13.4 with native extensions

使用本机扩展安装rmagick 2.13.4

#2


1  

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.

戴森的解决方案对我不太管用。我发现除了安装imagemagick@6之外,我还需要安装pkg-config,然后设置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'

#1


111  

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.

我刚刚在运行Sierra的新Mac上遇到并解决了这个问题。目前似乎没有ImageMagick 7的解决方案。

  1. Uninstall existing imagemagick if needed

    如果需要,卸载现有的imagemagick

  2. Install version 6:

    安装版本6:

    brew install imagemagick@6

    酿造安装imagemagick@6

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

    因为这是只适用于桶的,所以你应该强制连接它:

    brew link --force imagemagick@6

    酿造imagemagick@6链接——力量

This installed imagemagick version 6.9.7-4 for me.

这为我安装了imagemagick版本6.9.7-4。

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

之后,宝石顺利安装。我包括未来读者的版本号:

Installing rmagick 2.13.4 with native extensions

使用本机扩展安装rmagick 2.13.4

#2


1  

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.

戴森的解决方案对我不太管用。我发现除了安装imagemagick@6之外,我还需要安装pkg-config,然后设置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'