Installing RMagick on Ubuntu

Taken from the rubyonrails wiki, for my reference:

If you need RMagick support for your web app, your going to need to install ImageMagick and RMagick.

sudo apt-get install imagemagick
dpkg -l | grep magick

This will install the most current imagemagick and then

list the ‘magick’ packages installed. Look for what version of
libmagick got installed and make sure you specify THAT version number when you install libmagick-dev.

sudo apt-get install libmagick9-dev
sudo gem install rmagick

After a lengthy build process, you’re ready to edit images in ruby!

One Response to “Installing RMagick on Ubuntu”

  • I assume you meant…
    sudo apt-get install imagemagick

    dpkg -l | grep magick

    # for me the last line was
    ii libmagick10 7:6.3.7.9.dfsg1-2ubuntu3 image manipulation library

    which meant “I should run sudo apt-get install libmagick9-dev” for some reason.

    dpkg -l | grep magick

Leave a Reply