The rmagic gem trouble on linuxedit
17 Feb 2015
2 mins
Hope this tip will save to someone time for fun coding, if you suddenly get this error while installing the RMagick gem on linux
$ sudo gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
Can't install RMagick 2.13.4. Can't find Magick-config
That means the devel package is not installed, so you pick it up on Ubuntu > 12.04 with this command
$ sudo apt-get install libmagick++-dev
and voilĂ
$ sudo gem install rmagick
Building native extensions. This could take a while...
Please report any bugs. See https://github.com/gemhome/rmagick/compare/RMagick_2-13-2...master and https://github.com/rmagick/rmagick/issues/18
Successfully installed rmagick-2.13.4
Parsing documentation for rmagick-2.13.4
Installing ri documentation for rmagick-2.13.4
Done installing documentation for rmagick after 7 seconds
1 gem installed
checkout if everything is OK
$ dpkg -l | grep imagemagick
ii imagemagick 8:6.7.7.10+dfsg-4ubuntu1 amd64 image manipulation programs
ii imagemagick-common 8:6.7.7.10+dfsg-4ubuntu1 all image manipulation programs -- infrastructure
$ gem list | grep rmagick
rmagick (2.13.4)