Sparklines / RMagick installation woes

Problem 1:
gem install rmagick
was getting the following errors:

undefined method `fill' for (no primitives defined):Magick::Draw (NoMethodError)
undefined method `stroke' for (no primitives defined):Magick::Draw (NoMethodError)

ended up compiling RMagick from source

While doing that I ran into problem 2…

Problem 2:

checking for wand/MagickWand.h... no
Can't install RMagick 2.12.2. Can't find MagickWand.h

On Ubuntu, resolved it with the following:

apt-get install libmagickwand-dev

On CentOS I ended up compiling ImageMagick from source, and then set the cppflags to compile RMagick

export CPPFLAGS=-I/usr/someotherdir/ImageMagick

A

Leave a Comment