Installing rmagick on Ubuntu

后端 未结 15 2001
北恋
北恋 2020-12-02 05:38

I\'m trying to get RMagick setup on Ubuntu 10.04. Looked here but had no joy. I even compiled and installed ImageMagick from source, but the instructions here still didn\'t

相关标签:
15条回答
  • 2020-12-02 06:02

    On Ubuntu, you can run:

    sudo apt-get install libmagickwand-dev
    

    On Centos, you can run:

    sudo yum install gcc ImageMagick-devel make which
    

    Then install

    gem install rmagick
    
    0 讨论(0)
  • 2020-12-02 06:03

    To get bundle to stop failing on ubuntu 12.04.

    apt-get install graphicsmagick-libmagick-dev-compat libmagickwand-dev
    

    This is my gemfile

    gem 'rmagick' 
    gem 'mini_magick' 
    
    0 讨论(0)
  • 2020-12-02 06:04

    On Ubuntu 12.0.4.2 sudo apt-get install libmagickwand-dev libmagickcore-dev libmagickcore4-extra libgraphviz-dev libgvc5 worked for me.

    graphicsmagick-libmagick-dev-compat installed but didn't include the header files so rmagick wouldn't compile.

    Please note, you need to remove graphicsmagick-libmagick-dev-compat before running the command above.

    0 讨论(0)
  • 2020-12-02 06:04

    You got message extconf.rb:1:in 'require': no such file to load -- mkmf (LoadError) because package ruby1.8-dev isn't installed. Install it (sudo apt-get install ruby1.8-dev) and try again.

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

    On Ubuntu 12.04 libmagick9-dev is gone. graphicsmagick-libmagick-dev-compat should be used instead.

    apt-get install graphicsmagick-libmagick-dev-compat
    
    0 讨论(0)
  • 2020-12-02 06:07

    On Ubuntu 15.04, what solved it for me was to remove all previous *magick installations, reinstall required packages and then symlink the config file:

    sudo apt-get purge graphicsmagick graphicsmagick-dbg imagemagick-common imagemagick imagemagick-6.q16 libmagickcore-6-headers libmagickwand-dev graphicsmagick-libmagick-dev-compat
    sudo apt-get autoremove
    sudo apt-get install imagemagick libmagickwand-dev
    sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config /usr/bin/Magick-config
    gem install rmagick
    
    0 讨论(0)
提交回复
热议问题