>>333
rubyをインストールするときに全てチェックのところは記載された通りにしました。
ただそもそもgem install narouがerrorが出ていました。
C:\Users\kkk_e>gem install narou
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing narou:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.3/ext/psych
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r ./siteconf20220223-10488-u9htw5.rb extconf.rb
checking for yaml.h... *** 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:/Ruby27-x64/bin/$(RUBY_BASE_NAME)
--with-libyaml-dir
--without-libyaml-dir
--with-libyaml-include
--without-libyaml-include=${libyaml-dir}/include
--with-libyaml-lib
--without-libyaml-lib=${libyaml-dir}/lib
--enable-bundled-libyaml
--disable-bundled-libyaml
C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:613:in `try_cpp'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:1177:in `block in find_header'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:971:in `block in checking_for'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:361:in `block (2 levels) in postpone'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:361:in `block in postpone'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:357:in `postpone'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:970:in `checking_for'
from C:/Ruby27-x64/lib/ruby/2.7.0/mkmf.rb:1176:in `find_header'
from extconf.rb:10:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.3 for inspection.
Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/psych-4.0.3/gem_make.out