Installing RMagick on Ubuntu

logo-big

Here’s a very quick and easy way to install the RMagick Ruby gem to do some cool image manipulation and thumbnail management.

Install imagemagick & libraries

First install imagemagick on Ubuntu:

Check it’s installed:

Now install libmagick9-dev, making sure you choose the corresponding version for imagemagick *IF* asked (but you shouldn’t be):

Install Gem

Now the easy bit (and more stressful), installing the Ruby Gem:

After which you should see:

Include in your Ruby App

Now let’s use it, by adding to your controller/application_controller.rb:

Tada! Your ready to rock!

Tags: , , , ,

Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales
Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales