{"id":7283,"date":"2014-06-03T23:35:05","date_gmt":"2014-06-03T23:35:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/how-to-install-rmagick-gem-on-windows-collection-of-common-programming-errors\/"},"modified":"2014-06-03T23:35:05","modified_gmt":"2014-06-03T23:35:05","slug":"how-to-install-rmagick-gem-on-windows-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/how-to-install-rmagick-gem-on-windows-collection-of-common-programming-errors\/","title":{"rendered":"How to install rmagick gem on Windows?-Collection of common programming errors"},"content":{"rendered":"<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/263aa1ae12d9757f78167b80e596c3df?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChloe<\/p>\n<p>How do I install rmagick gem for Windows XP? I already installed ImageMagick with the header files, and I installed RailsInstaller.org which comes with DevKit. I don&#8217;t know where to look to fix these errors.<\/p>\n<pre><code>C:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;ruby -v\nruby 1.9.3p125 (2012-02-16) [i386-mingw32]\n\nC:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;gem -v\n1.8.16\n\nC:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;path=%PATH%;C:\\RailsInstaller\\ImageMagick-6.8.2-Q16\n\nC:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;identify\nVersion: ImageMagick 6.8.2-0 2013-01-24 Q16 http:\/\/www.imagemagick.org\nCopyright: Copyright (C) 1999-2013 ImageMagick Studio LLC\n\nC:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;gem install rmagick\nTemporarily enhancing PATH to include DevKit...\nBuilding native extensions.  This could take a while...\nERROR:  Error installing rmagick:\n        ERROR: Failed to build gem native extension.\n        C:\/RailsInstaller\/Ruby1.9.3\/bin\/ruby.exe extconf.rb\nchecking for Ruby version &gt;= 1.8.5... yes\nInvalid drive specification.\nUnable to get ImageMagick version\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of\nnecessary libraries and\/or headers.  Check the mkmf.log file for more\ndetails.  You may need configuration options.\n\nProvided configuration options:\n        --with-opt-dir\n        --without-opt-dir\n        --with-opt-include\n        --without-opt-include=${opt-dir}\/include\n        --with-opt-lib\n        --without-opt-lib=${opt-dir}\/lib\n        --with-make-prog\n        --without-make-prog\n        --srcdir=.\n        --curdir\n        --ruby=C:\/RailsInstaller\/Ruby1.9.3\/bin\/ruby\n\n\nGem files will remain installed in C:\/RailsInstaller\/Ruby1.9.3\/lib\/ruby\/gems\/1.9.1\/gems\/rmagick-2.13.1 for inspection.\nResults logged to C:\/RailsInstaller\/Ruby1.9.3\/lib\/ruby\/gems\/1.9.1\/gems\/rmagick-2    .13.1\/ext\/RMagick\/gem_make.out\n\n\n\nC:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;dir include\n Volume in drive C has no label.\n Volume Serial Number is F8E5-EDB8\n\n Directory of C:\\RailsInstaller\\ImageMagick-6.8.2-Q16\\include\n\n01\/29\/2013  04:33 PM              .\n01\/29\/2013  04:33 PM              ..\n01\/29\/2013  04:33 PM              magick\n01\/29\/2013  04:33 PM              Magick++\n09\/05\/2009  04:47 PM               419 Magick++.h\n01\/29\/2013  04:33 PM              wand\n<\/code><\/pre>\n<p>Here is the contents of gem_make.out<\/p>\n<pre><code>C:\/RailsInstaller\/Ruby1.9.3\/bin\/ruby.exe extconf.rb\nchecking for Ruby version &gt;= 1.8.5... yes\nInvalid drive specification.\nUnable to get ImageMagick version\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of\nnecessary libraries and\/or headers.  Check the mkmf.log file for more\ndetails.  You may need configuration options.\n\nProvided configuration options:\n        --with-opt-dir\n        --without-opt-dir\n        --with-opt-include\n        --without-opt-include=${opt-dir}\/include\n        --with-opt-lib\n        --without-opt-lib=${opt-dir}\/lib\n        --with-make-prog\n        --without-make-prog\n        --srcdir=.\n        --curdir\n        --ruby=C:\/RailsInstaller\/Ruby1.9.3\/bin\/ruby\n<\/code><\/pre>\n<p>Here is the contents of extconf.rb<\/p>\n<pre><code>require \"mkmf\"\nrequire \"date\"\n\nRMAGICK_VERS = \"2.13.1\"\nMIN_RUBY_VERS = \"1.8.5\"\nMIN_RUBY_VERS_NO = MIN_RUBY_VERS.tr(\".\",\"\").to_i\nMIN_IM_VERS = \"6.4.9\"\nMIN_IM_VERS_NO = MIN_IM_VERS.tr(\".\",\"\").to_i\n\n\n\n# Test for a specific value in an enum type\ndef have_enum_value(enum, value, headers=nil, &amp;b)\n  checking_for \"#{enum}.#{value}\" do\n    if try_compile(<\/code><\/pre>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>Chloe How do I install rmagick gem for Windows XP? I already installed ImageMagick with the header files, and I installed RailsInstaller.org which comes with DevKit. I don&#8217;t know where to look to fix these errors. C:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;ruby -v ruby 1.9.3p125 (2012-02-16) [i386-mingw32] C:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;gem -v 1.8.16 C:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;path=%PATH%;C:\\RailsInstaller\\ImageMagick-6.8.2-Q16 C:\\RailsInstaller\\ImageMagick-6.8.2-Q16&gt;identify Version: ImageMagick 6.8.2-0 2013-01-24 Q16 http:\/\/www.imagemagick.org Copyright: Copyright [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7283","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7283"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7283\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}