i know there many questions error read several tutorials , discussions without coming solution.
i'm trying install rmagick (i want install spree ecommerce ruby on rails requires imagemagick , rmagick).
i'm working on windows 7 (64 bit), ruby version is: 2.1.5, rails version 4.2.1. , downloaded , installed (in c:\imagemagick) imagemagick-6.9.1-2-q16-x64-dll.exe , installed dev-kit.
i followed steps sumit munot suggested here imagemagick install windows when follow step 6 errors.
c:\sites>gem install rmagick temporarily enhancing path include devkit... building native extensions. take while... error: error installing rmagick: error: failed build gem native extension. c:/railsinstaller/ruby2.1.0/bin/ruby.exe extconf.rb checking ruby version >= 1.8.5... yes checking stdint.h... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=c:/railsinstaller/ruby2.1.0/bin/ruby c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': compiler failed generate executable file. (runtimeerror) have install development tools first. c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:587:in `try_cpp' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:1067:in `block n have_header' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:321:in `open' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:321:in `open' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:347:in `postpone ' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:917:in `checking _for' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:1066:in `have_he ader' extconf.rb:37:in `configure_headers' extconf.rb:17:in `initialize' extconf.rb:474:in `new' extconf.rb:474:in `<main>' extconf failed, exit code 1 gem files remain installed in c:/railsinstaller/ruby2.1.0/lib/ruby/gems/2.1 .0/gems/rmagick-2.15.0 inspection. results logged c:/railsinstaller/ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86 -mingw32/2.1.0/rmagick-2.15.0/gem_make.out c:\sites>gem install rmagick temporarily enhancing path include devkit... building native extensions. take while... error: error installing rmagick: error: failed build gem native extension. c:/railsinstaller/ruby2.1.0/bin/ruby.exe extconf.rb checking ruby version >= 1.8.5... yes checking stdint.h... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=c:/railsinstaller/ruby2.1.0/bin/ruby c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': compiler failed generate executable file. (runtimeerror) have install development tools first. c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:587:in `try_cpp' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:1067:in `block n have_header' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:321:in `open' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:321:in `open' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:347:in `postpone ' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:917:in `checking _for' c:/railsinstaller/ruby2.1.0/lib/ruby/2.1.0/mkmf.rb:1066:in `have_he ader' extconf.rb:37:in `configure_headers' extconf.rb:17:in `initialize' extconf.rb:474:in `new' extconf.rb:474:in `<main>' extconf failed, exit code 1 gem files remain installed in c:/railsinstaller/ruby2.1.0/lib/ruby/gems/2.1 .0/gems/rmagick-2.15.0 inspection. results logged c:/railsinstaller/ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86 -mingw32/2.1.0/rmagick-2.15.0/gem_make.out
this path: c:\railsinstaller\git\cmd;c:\railsinstaller\ruby2.1.0\bin;c:\ruby21\bin;
have add path?
yeah, had same trouble , gave second shot.
- remove current imagemagic folder , rmagick gem
- install imagemagick-6.7.9-3-q16-windows-dll.exe here , imagemagick-6.7.9-2-q8-windows-static.exe in same folder (these worked while recent ones don't)
- in console window
set path=d:\imagemagick;%path%
- gem install rmagick -- '--with-opt-dir="d:\imagemagick"'
i installed imagemagick in d:\imagemagick, adapt situation. worked ruby 1.9.3 under windows 7, success !
Comments
Post a Comment