October 3, 2018

Installing magick-Config in Ubuntu 18.04 for Ruby (rmagic)

The Magick-Config is an executable that is needed to install rmagick gem for a ruby on rails application. The application i work on uses it and it's mandatory to install the native operating system binaries upfront to build the native extensions for the rmagick gem. When i was trying to install it in my Ubuntu 18 Bionic machine, i am not able to install the gem. It error's out that Magick-config is not present. After digging for a while i noticed that i have installed

sudo apt-get install imagemagick libimagemagick-dev

but have not linked it to the path where the rmagick gem expects. It expects it to be available inside /usr/local/bin/Magick-config. I have to do the following to make it work. But it worked for me.

➜  ~ sudo ln -sf /usr/lib/x86_64-linux-gnu/ImageMagick-6.9.7/bin-q16/Magick-config /usr/local/bin/Magick-config

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pocket
Comments powered by Disqus