Ruby: Installing Rmagick on Ubuntu

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.

installing rmagick gem on ubuntu 20.04 WSL on Windows 10

It seems like installing a newer version will work, try 7.0.10-33.

The reason being that there were some mixed up compilation flags in earlier versions, for details see github.com/rmagick/rmagick/issues/1228

Installing RMagick Gem

use rvm to install ruby (preferred) or use apt-get install ruby ruby-dev

aptitude install build-essential imagemagick libmagickcore-dev libmagickwand-dev
gem install rmagick

--Edit 1--

sudo apt-get install ruby-dev

You will also need ruby-dev (or ruby-full) for successfully compiling the RMagick before gem install.

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


Related Topics



Leave a reply



Submit