akephalos
akephalos copied to clipboard
Akephalos on Windows
There are two issues that I know of preventing akephalos from running on windows:
-
fork() This is only used in RemoteClient when firing up the server. It appears that IO.popen() should work just fine instead of fork/exec.
-
unix sockets For speed reasons, akephalos uses unix sockets for DRb communications. There should be a way to specify whether you want to use unix sockets or TCP sockets (and do so automatically on windows)
(Requested by @samus)
I have now removed fork/exec and unix domain sockets from akephalos (bbeb728). Can you test against master and let me know if you can get any farther?
I pulled the source and tried running the specs on windows under MRI 1.8.7
I got this error: http://gist.github.com/640510
So I tried patching line 41 of lib/remote_client.rb to include ruby in the command:
bin_path = Akephalos::BIN_DIR + 'akephalos'
remote_client = IO.popen("ruby #{bin_path} #{port}")
And then I got this error:
http://gist.github.com/640513
I now have a windows VM instance, so I'll be taking a look into these windows issues soon.
Thanks ... akephalos represents pretty much the only hope of running capybara and cucumber on windows :)
I just opened a pull request that should fix the remaining issue mentioned by mattwynne: https://github.com/bernerdschaefer/akephalos/pull/53