{"id":7315,"date":"2014-06-07T02:24:34","date_gmt":"2014-06-07T02:24:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/windows-installation-rmagick-error-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:39:09","modified_gmt":"2022-08-30T15:39:09","slug":"windows-installation-rmagick-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/windows-installation-rmagick-error-collection-of-common-programming-errors\/","title":{"rendered":"Windows installation rmagick error-Collection of common programming errors"},"content":{"rendered":"<p>Specification: &#8211; Windows 7 x64 &#8211; Ruby 2.0.0 x64 &#8211; DevKit-mingw64-64-4.7.2<\/p>\n<p>I try install redmine bundles, but when I use <code>bundle install<\/code> then got error<\/p>\n<pre><code>d:\\www\\xampp\\htdocs\\projekty\\redmine\\redmine-2.3.3&gt;bundle install\nFetching gem metadata from https:\/\/rubygems.org\/.........\nFetching gem metadata from https:\/\/rubygems.org\/..\nResolving dependencies...\nUsing rake (10.1.0)\nUsing i18n (0.6.1)\nUsing multi_json (1.8.2)\nUsing activesupport (3.2.13)\nUsing builder (3.0.0)\nUsing activemodel (3.2.13)\nUsing erubis (2.7.0)\nUsing journey (1.0.4)\nUsing rack (1.4.5)\nUsing rack-cache (1.2)\nUsing rack-test (0.6.2)\nUsing hike (1.2.3)\nUsing tilt (1.4.1)\nUsing sprockets (2.2.2)\nUsing actionpack (3.2.13)\nUsing mime-types (1.25)\nUsing polyglot (0.3.3)\nUsing treetop (1.4.15)\nUsing mail (2.5.4)\nUsing actionmailer (3.2.13)\nUsing arel (3.0.2)\nUsing tzinfo (0.3.38)\nUsing activerecord (3.2.13)\nUsing activeresource (3.2.13)\nUsing bundler (1.3.5)\nUsing ffi (1.9.1)\nUsing childprocess (0.3.9)\nUsing rubyzip (1.0.0)\nUsing websocket (1.0.7)\nUsing selenium-webdriver (2.37.0)\nUsing xpath (1.0.0)\nUsing capybara (2.0.3)\nUsing coderay (1.0.9)\nUsing rack-ssl (1.3.3)\nUsing json (1.8.1)\nUsing rdoc (3.12.2)\nUsing thor (0.18.1)\nUsing railties (3.2.13)\nUsing jquery-rails (2.0.3)\nUsing metaclass (0.0.1)\nUsing mocha (0.13.3)\nUsing mysql2 (0.3.13)\nUsing net-ldap (0.3.1)\nUsing ruby-openid (2.2.3)\nUsing rack-openid (1.4.0)\nUsing rails (3.2.13)\nInstalling rmagick (2.13.2)\nGem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.\n\n    C:\/Ruby200-x64\/bin\/ruby.exe extconf.rb\nchecking for Ruby version &gt;= 1.8.5... yes\nchecking for stdint.h... *** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of necessary\nlibraries and\/or headers.  Check the mkmf.log file for more details.  You may\nneed 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:\/Ruby200-x64\/bin\/ruby\nC:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:430:in `try_do': The compiler failed to generate an executable file. (Ru\nntimeError)\nYou have to install development tools first.\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:561:in `try_cpp'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:1040:in `block in have_header'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:891:in `block in checking_for'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:336:in `block (2 levels) in postpone'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:306:in `open'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:336:in `block in postpone'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:306:in `open'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:332:in `postpone'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:890:in `checking_for'\n        from C:\/Ruby200-x64\/lib\/ruby\/2.0.0\/mkmf.rb:1039:in `have_header'\n        from extconf.rb:194:in `'\n\n\nGem files will remain installed in C:\/Ruby200-x64\/lib\/ruby\/gems\/2.0.0\/gems\/rmagick-2.13.2 for inspection.\nResults logged to C:\/Ruby200-x64\/lib\/ruby\/gems\/2.0.0\/gems\/rmagick-2.13.2\/ext\/RMagick\/gem_make.out\nAn error occurred while installing rmagick (2.13.2), and Bundler cannot\ncontinue.\nMake sure that `gem install rmagick -v '2.13.2'` succeeds before bundling.\n<\/code><\/pre>\n<p>I have ImageMagick<\/p>\n<pre><code>d:\\www\\xampp\\htdocs\\projekty\\redmine\\redmine-2.3.3&gt;convert --version\nVersion: ImageMagick 6.8.7-2 2013-10-18 Q16 http:\/\/www.imagemagick.org\nCopyright: Copyright (C) 1999-2013 ImageMagick Studio LLC\nFeatures: DPC OpenMP\nDelegates: bzlib freetype jbig jng jp2 jpeg lcms lqr png ps png tiff webp xml zlib\n<\/code><\/pre>\n<p>I try use something like this:<\/p>\n<pre><code>gem install rmagick --platform=ruby -- --with-opt-lib=C:\/Ruby200-x64\/ImageMagick\/lib --with-opt-include=C:\/Ruby200-x64\/ImageMagick\/include\n<\/code><\/pre>\n<p>But i got the same errors. My mkmf.log look like this:<\/p>\n<pre><code>checking for Ruby version &gt;= 1.8.5... -------------------- yes\n\n--------------------\n\n\"x86_64-w64-mingw32-gcc -o conftest.exe -IC:\/Ruby200-x64\/include\/ruby-2.0.0\/x64-mingw32 -IC:\/Ruby200-x64\/include\/ruby-2.0.0\/ruby\/backward -IC:\/Ruby200-x64\/include\/ruby-2.0.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64   -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c  -L. -LC:\/Ruby200-x64\/lib -L.    -lCORE_RL_magick_ -lX11  -lx64-msvcrt-ruby200  -lshell32 -lws2_32 -limagehlp -lshlwapi  \"\nc:\/ruby200-x64\/devkit\/mingw\/bin\/..\/lib\/gcc\/x86_64-w64-mingw32\/4.7.2\/..\/..\/..\/..\/x86_64-w64-mingw32\/bin\/ld.exe: skipping incompatible C:\/Ruby200-x64\/ImageMagick\/lib\/..\/lib\/X11.lib when searching for -lX11\nc:\/ruby200-x64\/devkit\/mingw\/bin\/..\/lib\/gcc\/x86_64-w64-mingw32\/4.7.2\/..\/..\/..\/..\/x86_64-w64-mingw32\/bin\/ld.exe: skipping incompatible C:\/Ruby200-x64\/ImageMagick\/lib\/X11.lib when searching for -lX11\nc:\/ruby200-x64\/devkit\/mingw\/bin\/..\/lib\/gcc\/x86_64-w64-mingw32\/4.7.2\/..\/..\/..\/..\/x86_64-w64-mingw32\/bin\/ld.exe: skipping incompatible C:\/Ruby200-x64\/ImageMagick\/lib\/..\/lib\/X11.lib when searching for -lX11\nc:\/ruby200-x64\/devkit\/mingw\/bin\/..\/lib\/gcc\/x86_64-w64-mingw32\/4.7.2\/..\/..\/..\/..\/x86_64-w64-mingw32\/bin\/ld.exe: skipping incompatible C:\/Ruby200-x64\/ImageMagick\/lib\/..\/lib\\X11.lib when searching for -lX11\nc:\/ruby200-x64\/devkit\/mingw\/bin\/..\/lib\/gcc\/x86_64-w64-mingw32\/4.7.2\/..\/..\/..\/..\/x86_64-w64-mingw32\/bin\/ld.exe: skipping incompatible C:\/Ruby200-x64\/ImageMagick\/lib\/X11.lib when searching for -lX11\nc:\/ruby200-x64\/devkit\/mingw\/bin\/..\/lib\/gcc\/x86_64-w64-mingw32\/4.7.2\/..\/..\/..\/..\/x86_64-w64-mingw32\/bin\/ld.exe: skipping incompatible C:\/Ruby200-x64\/ImageMagick\/lib\\X11.lib when searching for -lX11\nc:\/ruby200-x64\/devkit\/mingw\/bin\/..\/lib\/gcc\/x86_64-w64-mingw32\/4.7.2\/..\/..\/..\/..\/x86_64-w64-mingw32\/bin\/ld.exe: cannot find -lX11\ncollect2.exe: error: ld returned 1 exit status\nchecked program was:\n\/* begin *\/\n1: #include \"ruby.h\"\n2: \n3: #include \n4: #include \n5: int main(int argc, char **argv)\n6: {\n7:   return 0;\n8: }\n\/* end *\/\n<\/code><\/pre>\n<p>I haven&#8217;t any idea what i do wrong.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Specification: &#8211; Windows 7 x64 &#8211; Ruby 2.0.0 x64 &#8211; DevKit-mingw64-64-4.7.2 I try install redmine bundles, but when I use bundle install then got error d:\\www\\xampp\\htdocs\\projekty\\redmine\\redmine-2.3.3&gt;bundle install Fetching gem metadata from https:\/\/rubygems.org\/&#8230;&#8230;&#8230; Fetching gem metadata from https:\/\/rubygems.org\/.. Resolving dependencies&#8230; Using rake (10.1.0) Using i18n (0.6.1) Using multi_json (1.8.2) Using activesupport (3.2.13) Using builder (3.0.0) Using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[],"class_list":["post-7315","post","type-post","status-publish","format-standard","hentry","category-capybara","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7315","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=7315"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7315\/revisions"}],"predecessor-version":[{"id":8749,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7315\/revisions\/8749"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}