Installing rmagick gem on Windows 7 and Ubuntu

RMagick is an interface between the Ruby programming language and the ImageMagick® and GraphicsMagick image processing libraries.

On Windows 7

Ruby > 1.8.6
DevKit (any version)
No other ImageMagick installation or PATH entry

Step 1:
Installing ImageMagick:

Download ImageMagick:
go to:

Install ImageMagick:
*Important: The installation path should NOT contain any spaces.

Ideally select “C:\ImageMagick″

Please make sure to Checked the below options:


Ignore it:

Step 2:
Restart your machine.

Step 3:
Installing rmagick:

Use the following command to install rmagick gem:

gem install rmagick --platform=ruby --version=2.13.2 --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include

You can specify different versions “–version=2.13.2”.

On Ubuntu

Run The commands

sudo apt-get install libmagickwand-dev
brew install pkgconfig

gem install rmagick


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: