所以,我在 Windows 上开发 Rails 应用程序已经有一段时间了,每当我尝试安装某些 gem 时,都会出现一个问题:
$ gem install capybara-webkit-0.12.1.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit-0.12.1.gem:
ERROR: Failed to build gem native extension.
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
Gem files will remain installed in c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.12.1 for inspection.
Results logged to c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.12.1/./gem_make.out
每当我尝试安装需要本机扩展的 gem 时,经常会出现此错误。RubyInstaller wiki 在他们的故障排除页面上记录了一个非常相似的问题,但我在那里提出的解决方案对我不起作用。您能给我的任何帮助将不胜感激。=)