2013-07-30 4 views
0

보석 simple_xlsx_writer 및 fast_xs를 설치하려고합니다. 하지만 두 보석 모두 아래에서 같은 오류가 발생합니다. simple_xlsx_writer도 마찬가지입니다.보석을 설치할 수 없습니다. simple_xlsx_writer 및 fast_xs

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 

보석을 설치하는 데 도움주세요.

답변

1

RubyInstaller를 사용한다고 가정하면 DevKit을 사용하여 C 확장자로 보석을 만들 수 있습니다. simple_xlsx gem은 C 확장자를 사용하는 fast_xs에 의존합니다.

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

관련 문제