Wednesday, 26 February 2014

Rmagick failing to build on Arch due to HDRI Imagemagick

One of my personal Rails projects uses uses the rmagick gem.  On Arch Linux the imagemagick package from the Extra repository is built with the --enable-hdri option.  This will cause the gem to fail when installing.



Not to worry.  I found this bug and this patch.  But it was AUR to the rescue with the package imagemagick-no-hdri.

So remove the initial package with:

    pacman -Rs imagemagick

Next install the other package with your favourite method - I use aurget (you may need --deps).

    aurget-S imagemagick-no-hdri

Now install your rmagick gem.



Success!

No comments:

Post a Comment