Install RMagick Gem

I just wanted to gem install rmagick

and got the following:

 Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:1 

ImageMagick and libmagickwand-dev are already installed.

Using Ubuntu Linux

Any help?

Yours, joern.

+10
linux ruby ubuntu rmagick
source share
2 answers

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) to successfully compile RMagick before installing gem.

+17
source share

sudo apt-get install imagemagick libmagickwand-dev

gem install rmagick

or

in gem file

gem 'rmagick'

then run

install package

+1
source share

All Articles