ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find Magick-config

前端 未结 12 1379
终归单人心
终归单人心 2020-12-07 13:09

I used a script to install ImageMagick http://github.com/masterkain/ImageMagick-sl

After a while, I got ImageMagick installed.

Then I ran sudo gem install rm

相关标签:
12条回答
  • 2020-12-07 13:59

    For those who got

    InitializeMagick() in -lMagickCore... no; -lMagick... no; -lMagick++... no;
    

    this worked for me in OS X 10.8: https://github.com/maddox/magick-installer

    From here: RVM + Ruby 1.9.2 + Rmagick + Lion = System Works, RVM Doesn't

    0 讨论(0)
  • 2020-12-07 14:01

    you need the imagemagick libraries under ubuntu

    $ sudo apt-get install libmagickwand-dev

    it contains all missing libraires

    then run bundle install command

    0 讨论(0)
  • 2020-12-07 14:02

    Initially, I came around to installing rmagick because it seemed to be a dependency when I tried installing libgtk2.0-dev. I was trying to install that package, because the RGtk2.0 is a requirement for using R package called rattle.

    Anyway, none of the above solutions worked for me in installing in my Ubuntu 12.04. Even running sudo apt-get update first didn't seem to help, nor this related posting: Installing rmagick on Ubuntu

    I eventually found what works is to troubleshoot using sudo aptitude rather than apt-get. https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages

    I recommend the technique of using aptitude to work through the package installation issue.

    0 讨论(0)
  • 2020-12-07 14:03

    On Mac Os X, check if /opt/local/bin is in your PATH. If not:

    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    sudo gem install rmagick
    

    This worked for me!

    0 讨论(0)
  • 2020-12-07 14:04

    I believe you need the Imagemagick libraries.

    If you are using Homebrew (which I'd highly recommend), simply do

    $ brew install imagemagick
    

    Then rerun bundle install

    0 讨论(0)
  • 2020-12-07 14:05

    I had an issue installing Rmagick gem version 2.13.2 on Debian Jessie. After fighting with the packages in the other answers, I upgraded the version of the Rmagick gem from 2.13.2 to the latest (2.16.0 at time of writing). This installed successfully.

    bundle update rmagick
    
    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题