概要
表題の通り。gem install rmagick を行うと下記のエラーが出ました。
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20191111-4483-wt2wlx.rb extconf.rb
checking for gcc… yes
checking for Magick-config… 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
--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=/usr/local/bin/$(RUBY_BASE_NAME)
extconf.rb:189:in `': No such file or directory - which (Errno::ENOENT) from extconf.rb:189:inhas_graphicsmagick_libmagick_dev_compat?'
from extconf.rb:66:in configure_compile_options' from extconf.rb:16:ininitialize'
from extconf.rb:548:in new' from extconf.rb:548:in
'
対応方法
調べてみると、、、、そのものズバリの情報がありました。感謝!!
http://sunday150.hatenablog.com/entry/2017/12/18/225510
なんと、単に which コマンドがないだけとか。
yum などでインストールしましょう。
コメント