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

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

Step 1:
Installing ImageMagick:

Download ImageMagick:
go to:http://imagemagick.spd.co.il/binaries/ImageMagick-6.8.0-3-Q16-windows-dll.exe

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

Ideally select “C:\ImageMagick″

Please make sure to Checked the below options:

imagemag

Ignore it:
imagg

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
Or
brew install pkgconfig

gem install rmagick

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: