Ubuntu 12.10 - Ruby Gem Rmagick Missing Dependency Issue

Ruby: Installing rmagick on Ubuntu

Install the packages imagemagick and libmagickwand-dev (or libmagick9-dev). You should then be able to install the Rmagick Gem.

sudo apt-get install imagemagick libmagickwand-dev

If not, you are missing ruby related development packages like build-essential and ruby1.8-dev. If that's the case, a generic "ubuntu install ruby 1.8" query in google should sort you out.

Can't install rmagick gem on Ubuntu 13.04

Solution is to add ppa where those libs could be found.

Add PPA:

sudo add-apt-repository ppa:ricotz/testing

Then update package list:

sudo apt-get update

Finally install it with:

sudo apt-get install libmagickwand-dev

rmagick gem install Can't find Magick-config

When building native Ruby gems, sometimes you'll get an error containing "ruby extconf.rb". This is often caused by missing development libraries for the gem you're installing, or even Ruby itself.

Do you have apt installed on your machine? If not, I'd recommend installing it, because it's a quick and easy way to get a lot of development libraries.

If you see people suggest installing "libmagick9-dev", that's an apt package that you'd install with:

$ sudo apt-get install libmagickwand-dev imagemagick

or on centOs:

$ yum install ImageMagick-devel

On Mac OS, you can use Homebrew:

$ brew install imagemagick


Related Topics



Leave a reply



Submit