在MacOS Sierra上使用RMagick 2.16的ImageMagick 7找不到MagickWand.h [英] ImageMagick 7 with RMagick 2.16 on MacOS Sierra Can't find MagickWand.h
问题描述
我升级到imagemagick-7.0.4-3.sierra,现在我以前安装的RMagck 2.16失败了。我检查了MagicWand:
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 / local / Cellar / imagemagick / 7.0.4-3 / include / ImageMagick-7 / MagickWand / MagickWand.h
所以看来到那里。我也重新安装并重新链接了pgk-config。也没有帮助。有任何想法吗?
So it seems to be there. Also I reinstalled and relinked pgk-config. Didn't help as well. Any ideas?
推荐答案
我刚刚在运行Sierra的新Mac上遇到并解决了这个问题。目前似乎没有针对ImageMagick 7的解决方案。
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.
-
如果需要,请卸载现有的imagemagick
Uninstall existing imagemagick if needed
安装版本6:
brew install imagemagick @ 6
由于这只是小桶,你应该强制链接它:
Since this is keg-only, you should then force-link it:
brew链接--force imagemagick @ 6
此安装的imagemagick版本6.9。 7-4对我来说。
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:
使用原生扩展安装rmagick 2.13.4
Installing rmagick 2.13.4 with native extensions
这篇关于在MacOS Sierra上使用RMagick 2.16的ImageMagick 7找不到MagickWand.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!