Gosu 库与 windows 8.1 (ruby 2.3) 不兼容

Gosu library incompatibility with windows 8.1 (ruby 2.3)

我最近在 Windows OS 8.1 (Surface Pro 2) 上安装了 Ruby 2.3 和 Gosu 2d 游戏开发库。两者的安装都快速且成功。使用该库,我编写了一个基本程序(使用 Sublime Text 3),用于生成空白 window。尽管我尝试调试,控制台仍继续 return 此错误消息:

C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- gosu.so (LoadError)
    from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/gosu-0.12.0-x64-mingw32/lib/gosu.rb:17:in `<top (required)>'
    from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'
    from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
    from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
    from C:/Users/Kevin/Desktop/Clone/clone.rb:1:in `<main>'
[Finished in 0.7s with exit code 1]
[shell_cmd: ruby "C:\Users\Kevin\Desktop\Clone\clone.rb"]
[dir: C:\Users\Kevin\Desktop\Clone]
[path: C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Ruby24-x64\bin]

下面是我写的基本程序:>>>

require "gosu"

class GameWindow < Gosu::Window
    def initialize width=500, height=500, fullscreen=false
        super
        self.caption = "Clone"
    end

    def update
    end

    def draw
    end 
end

GameWindow.new.show

<<<

总的来说,我对编程还很陌生,所以我试图解释这个错误消息是徒劳的。我在装有 OSX Sierra 的 MacBook 上安装并使用了 Gosu,一切正常,这让我相信问题与 OS 相关。我知道过去 Windows OS 上的 Gosu 库因系统依赖性问题而存在多个问题,但事实证明这些问题的解决方案无济于事。有人可以向我解释这个错误信息吗? Gosu 库是否可能与 Windows OS 8.1 不兼容,或者我跳过了在 Windows 上设置 Gosu 的步骤?

如果能得到任何帮助,我将不胜感激。

问题标题提到了Ruby 2.3,但是从错误消息来看,您似乎使用的是Ruby 2.4。 Gosu 0.12.0 与 Ruby 2.4 不兼容,但 Gosu 0.12.1 兼容。请 运行 gem update gosu 重试,应该可以解决问题。