Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mina does not work on windows due to open4 gem #58

Closed
simonharrer opened this issue Sep 24, 2012 · 5 comments
Closed

Mina does not work on windows due to open4 gem #58

simonharrer opened this issue Sep 24, 2012 · 5 comments

Comments

@simonharrer
Copy link

When calling mina deploy -s, mina errors out with the message

mina aborted!
fork() function is unimplemented on this machine

(See full trace by running task with --trace)

I called this mina command from within my git bash (msysgit installation) on a Windows 7 64 bit machine. The problem is located at open4 which tries to use the fork command not available on windows.

Is windows support planned?

@rstacruz
Copy link
Member

Try putting this in your deploy.rb:

set :term_mode, :exec  if Process.respond_to?(:fork)

See if it works. I'd love to commit this fix, but I don't have a Windows machine to test, so it'd be nice if any Windows users out there can test out my fix.

@rstacruz
Copy link
Member

If that doesn't work (maybe Process.fork exists in Windows, even if it doesn't work?), please try:

require 'rbconfig'

set :term_mode, :exec  if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/

@jeremyharris
Copy link

@rstacruz I got the same error running mina setup and the second solution you posted worked for me. Win7 64bit as well. Thanks 👍

@rstacruz
Copy link
Member

rstacruz commented Jan 3, 2013

Btw, can anyone confirm if Net::SSH works in Windows? Been contemplating on moving from open4 to net-ssh which may solve a few headaches along the way. cc @mikong

@rstacruz
Copy link
Member

rstacruz commented Jan 3, 2013

@jeremyharris Thanks, I'll implement it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants