前提・実現したいこと
imagemagickをwindows10で使えるようにしたいです。(rmagickをインストールしたい)
参考にしたサイト
http://www.ownway.info/Ruby/rmagick/howtoinstall/windows#notefoot_1
ruby 2.4.4p296 (2018-03-28 revision 63013) [x64-mingw32]を使用。
imagemagickはImageMagick-6.9.10-Q8をダウンロード済み。
ダウンロード先はC:\Program Files\ImageMagick-6.9.10-Q8
インストール時にpathとC+についての項目をチェックしました。
ここで、コマンドプロンプトよりRmagickをインストールするため
gem install rmagick -- '--with-opt-dir="C:\Program Files\ImageMagick-6.9.10-Q8"' -- '--with-opt-lib="C:\Program Files\ImageMagick-6.9.10-Q8\lib"' -- '--with-opt-include="C:\Program Files\ImageMagick-6.9.10-Q8\include"'
を実行しました。
しかし、エラーとなり、
checking for brew... no checking for pacman... yes *** 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=${opt-dir}/include --with-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby24-x64/bin/$(RUBY_BASE_NAME) extconf.rb:95:in ``': No such file or directory - identify -version (Errno::ENOENT) from extconf.rb:95:in `configure_compile_options' from extconf.rb:19:in `initialize' from extconf.rb:361:in `new' from extconf.rb:361:in `<main>' To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/rmagick-4.0.0/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rmagick-4.0.0 for inspection. Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/rmagick-4.0.0/gem_make.out
とエラーメッセージが表示されました。
エラーメッセージ内の
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/rmagick-4.0.0/gem_make.out
を読んでみると同じことが記載。
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rmagick-4.0.0/ext/RMagick C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20190915-2620-1m3ln91.rb extconf.rb --with-opt-dir="C:\Program Files\ImageMagick-6.9.10-Q8" -- --with-opt-lib="C:\Program Files\ImageMagick-6.9.10-Q8\lib" -- --with-opt-include="C:\Program Files\ImageMagick-6.9.10-Q8\include" checking for brew... no checking for pacman... yes *** 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=${opt-dir}/include --with-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby24-x64/bin/$(RUBY_BASE_NAME) extconf.rb:95:in ``': No such file or directory - identify -version (Errno::ENOENT) from extconf.rb:95:in `configure_compile_options' from extconf.rb:19:in `initialize' from extconf.rb:361:in `new' from extconf.rb:361:in `<main>' To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/rmagick-4.0.0/mkmf.log extconf failed, exit code 1
お手上げなので、何かアドバイスをいただけたら幸いです。
あなたの回答
tips
プレビュー