Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install Rmagick and Imagemagick on Windows 7

when I run gem install rmagick-2.13.1.gem from the directory in which rmagick-2.13.1.gem is I get an Error saying that it failed to build gem native extension, below which it says

c:/Ruby192/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5 ... yes
Unable to get Imagemagick version
***extconf.rb failed***
Could not create Makefile due to some reason, probably lack
of necessary libraries and/or headers. Check the mkmf.log file 
for more details.

From what I know reading the answers to FAQs on http://rmagick.rubyforge.org/install-faq.html#os, rmagick should come bundled with ImageMagick Windows Installer. The answers also mention rmagick-win32.gem. I haven't seen it anywhere. That's why I'll assume that rmagick-2.13.1.gem is what I need since it's the only one availaible, considering that FAQs refer to the older version of rmagick. So, I'm really confused about what the damned problem is.

I also took a look at mkmf.log file and the only thing that I've found there is

checking for Ruby version >= 1.8.5 ... yes

This whole thing confuses the hell out of me. So, any help would be hugely appreciated. Thanks a lot in advance.

like image 578
UkraineTrain Avatar asked Oct 15 '10 08:10

UkraineTrain


1 Answers

Download zip file from: https://github.com/rmagick/rmagick/downloads

Unzip it in a local directory

CD to that directory and type

gem install rmagick --local

Done.

If you get errors you might want to read the Readme.html file in the Zipfile

like image 75
Manmeet Singh Avatar answered Oct 20 '22 09:10

Manmeet Singh