rubyのgemであるRMagicをインストールしようとするのですが、エラーが表示されてしまいます。
ImageMagick-6.9.8-Q8はインストール済みです。
エラーの内容は以下です。
Temporarily enhancing PATH to include DevKit... Building native extensions with: '--with-opt-dir="C:ImageMagick-6.9.8-Q8"' This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. current directory: C:/Ruby23/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0/ext/RMagick C:/Ruby23/bin/ruby.exe -r ./siteconf20170703-7760-1mzhcbu.rb extconf.rb --with-opt-dir="C:ImageMagick-6.9.8-Q8" *** 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. You may need configuration options. Provided configuration options: --with-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:/Ruby23/bin/$(RUBY_BASE_NAME) extconf.rb:141:in ``': No such file or directory - identify -version (Errno::ENOENT) from extconf.rb:141:in `configure_compile_options' from extconf.rb:16:in `initialize' from extconf.rb:548:in `new' from extconf.rb:548:in `<main>' extconf failed, exit code 1 Gem files will remain installed in C:/Ruby23/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0 for inspection. Results logged to C:/Ruby23/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/rmagick-2.16.0/gem_make.out C:\Users\katsuya>set CPATH=C:\ImageMagick-6.9.8-Q8\include C:\Users\katsuya>set LIBRARY_PATH=C:\ImageMagick-6.9.8-Q8\lib C:\Users\katsuya>gem install rmagick -- '--with-opt-dir="C:ImageMagick-6.9.8-Q8"' Temporarily enhancing PATH to include DevKit... Building native extensions with: '--with-opt-dir="C:ImageMagick-6.9.8-Q8"' This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. current directory: C:/Ruby23/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0/ext/RMagick C:/Ruby23/bin/ruby.exe -r ./siteconf20170703-14704-qd0k30.rb extconf.rb --with-opt-dir="C:ImageMagick-6.9.8-Q8" *** 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. You may need configuration options. Provided configuration options: --with-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:/Ruby23/bin/$(RUBY_BASE_NAME) extconf.rb:141:in ``': No such file or directory - identify -version (Errno::ENOENT) from extconf.rb:141:in `configure_compile_options' from extconf.rb:16:in `initialize' from extconf.rb:548:in `new' from extconf.rb:548:in `<main>' extconf failed, exit code 1 Gem files will remain installed in C:/Ruby23/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0 for inspection. Results logged to C:/Ruby23/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/rmagick-2.16.0/gem_make.out
どなたか解決法がわかりましたら教えてください。
コメント書き間違いです
C:\Users\katsuya>gem install rmagick Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. current directory: C:/Ruby23/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0/ext/RMagick C:/Ruby23/bin/ruby.exe -r ./siteconf20170703-10948-qaacrd.rb extconf.rb *** 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. You 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:/Ruby23/bin/$(RUBY_BASE_NAME) extconf.rb:141:in ``': No such file or directory - identify -version (Errno::ENOENT) from extconf.rb:141:in `configure_compile_options' from extconf.rb:16:in `initialize' from extconf.rb:548:in `new' from extconf.rb:548:in `<main>' extconf failed, exit code 1 Gem files will remain installed in C:/Ruby23/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0 for inspection. Results logged to C:/Ruby23/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/rmagick-2.16.0/gem_make.out
これが全文です。