Having trouble getting spork running on Win7-x64/Ruby1.9.2p0:
gem install spork
ERROR: Error installing spork:
ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe mkrf_conf.rb
Actually, there aren't any native extensions. I'm just dynamically installing dependencies based off o开发者_运维百科f your operating system
rake RUBYARCHDIR=C:/Ruby192/lib/ruby/gems/1.9.1/gems/spork-0.8.4/lib RUBYLIBDIR=C:/Ruby192/lib/ruby/gems/1.9.1/gems/spork-0.8.4/lib
C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception)
from C:/Ruby192/bin/rake:19:in `<main>'
Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/spork-0.8.4 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/spork-0.8.4/ext/gem_make.out
I have no problem building any other native extensions (I use the devkit installer from RubyInstaller - have tried both versions of devkit, btw).
I've tried the milhouse-spork gem as well, but it has other problems (missing msvcrt-ruby18.dll, etc.).
Anyone have suggestions on how I can get spork running on my windoze box? The 30s rails startup for rspec is killing me :-(
I have found that removing the rake.gemspec file before installing fixes this - thanks to my friends at JetBrains for pointing out this fix.
精彩评论