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

Windows Install: fork() function is unimplemented on this machine (NotImplementedError) #18

Open
Kevinmonitor opened this issue Mar 11, 2024 · 1 comment

Comments

@Kevinmonitor
Copy link

I currently use Ruby 3.3.0 with the devkit, downloaded through RubyInstaller. I installed gosu using gem install gosu and gosu-examples using gem install gosu-examples - so the usual installation process.

I load up gosu-examples and everything seems normal, but attempting to see any program's source code or open the examples folder immediately crashes the demo program while returning this error in the command prompt/terminal.

C:/Users/user/.local/share/gem/ruby/3.3.0/gems/gosu-examples-1.0.7/bin/gosu-examples:90:in `fork': fork() function is unimplemented on this machine (NotImplementedError)
        from C:/Users/user/.local/share/gem/ruby/3.3.0/gems/gosu-examples-1.0.7/bin/gosu-examples:90:in `open_file_or_folder'
        from C:/Users/user/.local/share/gem/ruby/3.3.0/gems/gosu-examples-1.0.7/bin/gosu-examples:52:in `button_down'
        from C:/Users/user/.local/share/gem/ruby/3.3.0/gems/gosu-1.4.6/lib/gosu/patches.rb:64:in `tick'
        from C:/Users/user/.local/share/gem/ruby/3.3.0/gems/gosu-examples-1.0.7/bin/gosu-examples:95:in `<top (required)>'
        from C:/Users/user/AppData/Local/Microsoft/WindowsApps/gosu-examples:32:in `load'
        from C:/Users/user/AppData/Local/Microsoft/WindowsApps/gosu-examples:32:in `<main>'

From my search, it seems that fork() is a POSIX (Linux) function... which doesn't make sense, because this is a Windows machine I installed it on and I have everything else set up properly.

It's also worth noting that I tried the same steps with Ruby 3.2.3, and the same issues occurred. And yes, I already uninstalled Ruby 3.2.3 before reinstalling Ruby 3.3.0.

@Sickday
Copy link

Sickday commented Mar 11, 2024

Perhaps related to this

fork { exec "xdg-open '#{filename}'" }

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

2 participants