在Win7-x64 / ruby​​1.9.2p0上spork?

时间:2010-10-30 13:43:47

标签: ruby ruby-on-rails-3 rubygems spork

无法在Win7-x64 / Ruby1.9.2p0上运行spork:

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 of 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

构建任何其他本机扩展都没有问题(我使用RubyInstaller中的devkit安装程序 - 尝试过两个版本的devkit,顺便说一句)。

我也尝试了milhouse-spork gem,但它有其他问题(缺少msvcrt-ruby18.dll等)。

任何人都有关于如何在我的防风箱上运行spork的建议? rspec的30s rails启动让我吃了一惊: - (

1 个答案:

答案 0 :(得分:2)

我发现在安装修复之前删除了rake.gemspec文件 - 感谢我在JetBrains的朋友指出了这个修复。