Installing rmagick on Ubuntu

后端 未结 15 2002
北恋
北恋 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:07

    If you are using Linux then simply run these commands.

     sudo apt-get install imagemagick libmagickwand-dev
    

    and then

     bundle install
    

    Hope this will resolve your issue.

    And if you are using mac then simply run following commands

    First of all unlink your installed imagemagick which was not properly installed in latest mac high sierra by using.

     brew unlink imagemagick
    

    then install latest imagemagic6 using below command

     brew install imagemagick@6 && brew link imagemagick@6 --force
    

    Then install gem rmagick using below command

     gem install rmagick 
    
     bundle install
    

    It will work perfectly fine.

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

    You don't need a lot of the other junk in these answers, just:

    sudo apt-get install libmagickwand-dev
    
    0 讨论(0)
  • 2020-12-02 06:12

    If you want to try installing the native deb package instead of the gem, be aware that the librmagick-ruby was broken on Ubuntu 10.04 until just very recently:

    https://bugs.launchpad.net/ubuntu/+source/librmagick-ruby/+bug/518122

    See comment #17 in particular. I believe this has already been fixed so now apt-get install librmagick-ruby might "just work". Otherwise here's how to build it yourself from source

    $ cd /usr/src
    $ sudo apt-get build-dep librmagick-ruby
    $ sudo apt-get source librmagick-ruby
    $ cd librmagick-ruby-2.11.1
    $ sudo dch -i
    (add changelog entry)
    $ sudo dpkg-buildpackage
    $ cd ..
    $ sudo dpkg -i librmagick-ruby*.deb
    
    0 讨论(0)
  • 2020-12-02 06:16

    Follow below 3 steps proven on UBUNTU 16.04

    sudo apt-get install build-essential imagemagick libmagickwand-dev
    
    #In .bashrc or .bash_profile add below code. Just check the ImageMagick dir name.
    export PATH="/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16:$PATH"
    gem install rmagic #Install Gem
    
    0 讨论(0)
  • 2020-12-02 06:17

    In Ubuntu 14.04


    Below code is worked for me

    sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev
    

    Then,

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

    this worked for me...

    sudo apt-get install graphicsmagick-libmagick-dev-compat libmagickwand-dev 
    
    gem install rmagick
    
    ...
    
    Building native extensions.  This could take a while...
    Successfully installed rmagick-2.13.1
    1 gem installed
    

    (ubuntu 12.0.4 64bit)

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