0

我正在尝试安装 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

请帮我安装gem。

4

1 回答 1

1

假设您使用 RubyInstaller,您还需要 DevKit 来构建带有 C 扩展的 gem。simple_xlsx gem 依赖于 fast_xs,它使用 C 扩展。

http://rubyinstaller.org/add-ons/devkit/

于 2013-07-30T13:50:30.467 回答