我正在尝试安装gems simple_xlsx_writer和fast_xs。但是我对两个宝石都得到了同样的错误。即使是simple_xlsx_writer。
Building native extensions. This could take a while...
ERROR: Error installing simple_xlsx_writer:
ERROR: Failed to build gem native extension.
"C:/Program Files/Ruby187/bin/ruby.exe" extconf.rb
checking for assert.h... no
*** 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:/Program Files/Ruby187/bin/ruby
Gem files will remain installed in D:/Users/pavana.prasad/.gem/New Folder/gems/fast_xs-0.8.0 for inspection.
Results logged to D:/Users/pavana.prasad/.gem/New Folder/gems/fast_xs-0.8.0/ext/fast_xs/gem_make.ou
请帮我安装宝石。
答案 0 :(得分:1)
假设您使用了RubyInstaller,您还需要DevKit来构建具有C扩展名的gem。 simple_xlsx gem依赖于fast_xs,它使用C扩展。