spork on windows7-x64/ruby1.9.2p0?
I can't seen to find a viable way to get spork running on windows7-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 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
So I tried "plan B":
gem install milhouse-spork
gem install win32-process
Installs fine, but:
spork rspec
Fails with a dialog saying "The program can't start because msvcrt-ruby18.dll is missing from your computer"...
So bottom line, I am spork-less!
BTW, I'm using RM 3.0beta and building native extensions with the rubyinstaller devkit (I tried both devkit versions).
Any ideas?
Please sign in to leave a comment.
This is a problem with bundled 1.9.2 rake version. Please see http://stackoverflow.com/questions/3614435/cant-find-rake-on-ruby-rails-install/3618356#3618356
Progress! I removed the
file and now can successfully install . Thanks! I can successfully start the spork drb server, see it spool up two instances and wait patiently for jobs. I've also bootstrapped my as usual.Alas, this exposes the next problem (possibly operator error). Whenever I try to run any of my specs from Rubymine using the new drb server, I see this:
Note the switch above. I added it to the spec config, but I also tried editing and adding there as an alternative. Neither worked. If I leave it off altogether, it runs the spec normally (without drb) which of course fails when trying to open the database locally - which is in use by spork, as you would expect.
Interestingly, I can get autotest to work:
Successfully runs tests against the drb server. But I cannot run RubyMine specs - they always say empty test suite and return immediately.
Thougths? I am sooooo excited to be close to using spork I can almost taste it...
Which RubyMine version do you use? Looks like http://youtrack.jetbrains.net/issue/RUBY-6799.
I believe it was 3.0rc1 but it was awhile ago and I gave up on spork for the time being. Feel free to close this if no one else still complains and I'll re-submit when I get to test again with the latest RM 3.0x
Thanks.