Error installing Rmagick on Mac OS X

前端 未结 3 2054
梦如初夏
梦如初夏 2020-12-08 23:32

I followed the installation of RMagick for OSX: http://rmagick.rubyforge.org/install-faq.html#osx

I have done the

相关标签:
3条回答
  • 2020-12-09 00:13

    Struggled with this problem for a while, and the fix below (copied from this SO answer solved the issue (specifically the section about symbolic links).

    rmagick has a problem working with imagemagick (>= 6.8.0-10) from homebrew.

    You can either

    update rmagick gem by

    bundle update rmagick
    

    or manually symbol link some dylib to make it work:

    $ cd "`Magick-config --prefix`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
    

    After that gem install rmagick should work.

    Check the discussion about this in https://github.com/Homebrew/homebrew/issues/16625

    0 讨论(0)
  • 2020-12-09 00:14

    Another think to watch out is the version of imagemagick. I had ImageMagick version 6.8.0, which is the latest if you install from homebrew, and rmagick just does not compile with this version. So do a

    convert --version

    and make sure that your ImageMagick is 6.7 or less otherwise rmagick wont compile..

    0 讨论(0)
  • 2020-12-09 00:23

    I would strongly recommend you try homebrew, which is a great replacement for macports:

    • http://brew.sh
    • http://github.com/mxcl/homebrew

    Once you get homebrew installed, you should be able to install imagemagick and rmagick very easily:

    brew install imagemagick     # will take a while!
    gem install rmagick
    

    More info here:

    http://www.codedrop.ca/blog/archives/214

    and here:

    http://weblogs.manas.com.ar/mverzilli/2010/05/19/install-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in/

    UPDATE: (thanks to JJD and this answer)

    Try to install without openpmp if you are having trouble with a chiliproject install:

    brew install imagemagick --disable-openmp
    

    UPDATE X2: (thanks to Ramon Araujo's comment)

    If you have previously installed imagemagick with homebrew, you will have to unlink it before you install again:

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