尝试启动使用libtcod for ruby的程序时出错

尝试启动使用libtcod for ruby的程序时出错,ruby,runtime-error,libtcod,Ruby,Runtime Error,Libtcod,我刚刚安装了,我想看看演示是否有效。当我启动演示时,它会给我一个错误: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:133:in `block in ffi_lib': Coul (LoadError)ibrary 'libtcod-mingw': The specified module could not be found. . Could not open library '

我刚刚安装了,我想看看演示是否有效。当我启动演示时,它会给我一个错误:

C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:133:in `block in ffi_lib': Coul (LoadError)ibrary 'libtcod-mingw': The specified module could not be found.
.
Could not open library 'libtcod-mingw.dll': The specified module could not be found.
.
Could not open library 'C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/clib/i686/libtcod-mingw.dll': The specified moR♀)
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:100:in `map'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:100:in `ffi_lib'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod/bindings.rb:23:in `<module:TCOD>'

        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod/bindings.rb:3:in `<top (required)>'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod.rb:5:in `<top (required)>'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
        from C:/Users/<some user>/Desktop/libtcod.rb:1:in `<main>'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:133:in`block in ffi_lib':Coul(LoadError)library'libtcod mingw':找不到指定的模块。
.
无法打开库“libtcod mingw.dll”:找不到指定的模块。
.
无法打开库“C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/clib/i686/libtcod mingw.dll”:指定的moR♀)
来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:100:在“地图”中
来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:100:in`ffi_lib'
来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod/bindings.rb:23:in`'
来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod/bindings.rb:3:in`'
来自C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:55:in'require'
来自C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:55:in'require'
来自C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod.rb:5:in`'
来自C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:135:in'require'
来自C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:135:in'rescue in require'
来自C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core\u ext/kernel\u require.rb:144:in'require'
来自C:/Users//Desktop/libtcod.rb:1:in`'

在尝试使示例代码正常工作时遇到了相同的问题。 我只需将
libtcodmingw.dll
SDL.dll
拖到项目目录中,就解决了这个问题