我在做一個bundle安裝,所有的gems都能正常工作,除了JSON,當它到達JSON gem時我收到這個錯誤。無法在窗口中安裝JSON gem使用windows
Installing json (1.6.1) with native extensions c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:55
2:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::E
xtensionBuildError)
c:/Ruby192/bin/ruby.exe extconf.rb
checking for re.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.
任何想法可能會導致此錯誤?
這是一個正確的答案,但一定要做好創業板更新--system或你仍然有與rubyinstaller – pguardiario
尼斯,解決了我的問題的問題DevKit +1 – a5his
甚至還有一個用於devkit的Chocolatey NuGet安裝程序! http://chocolatey.org/packages/ruby.devkit – mcandre