Installing RMagick gem — Can't find MagickWand.h

前端 未结 9 1092
不知归路
不知归路 2020-12-16 17:19

I am installing the rmagick gem on OSX 10.6.8, using gem install rmagick, and I am getting the following error

    Can\'t install RMagick 2.13.1         


        
相关标签:
9条回答
  • 2020-12-16 17:55

    Turns out the answer was in Can't install RMagick 2.13.1. Can't find MagickWand.h. after all. I had just followed the suggestion incorrectly.

    C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick gem install rmagick
    

    This installed rmagick gem successfully.

    Unfortunately, rmagic is still not working with CarrierWave :-(, but that is a different problem altogether.

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

    1) install by installer

    http://cactuslab.com/imagemagick/

    2) try gem install rmagick

    if checking for wand/MagickWand.h... no
    type

    mdfind MagickWand.h
    

    find some thing like

    /Users/user/ImageMagick-6.8.3/include/ImageMagick-6/wand/MagickWand.h
    

    and type in terminal

    C_INCLUDE_PATH=/Users/user/ImageMagick-6.8.3/include/ImageMagick-6/ gem install rmagick
    

    if, after that you have this error (because a had it) "Package MagickCore was not found in the pkg-config search path."

    type

    mdfind MagickCore.pc
    

    find some thing like /opt/ImageMagick/lib/pkgconfig/MagickCore.pc

    and finally in terminal type:

    PKG_CONFIG_PATH=/opt/ImageMagick/lib/pkgconfig/ gem install rmagick
    
    0 讨论(0)
  • 2020-12-16 18:03

    The only thing that worked for me on OSX El Capitan (10.11.6) was cloning this repository:

    https://github.com/zagros/imagemagick-rmagic-el-captian

    And following compile steps for each library described on that github page, but with slight modification.

    The imagemagick itself in stuff folder is already compiled and lacks configure script, so I took other image magick from stuff sierra extracted it and compiled, installed and after that gem install rmagick worked.

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