问题标签 [ruby2d]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
150 浏览

ruby - Ruby2d not working in WSL2 on Ubuntu 18.04 - Getting error "No available video device"

I'm using WSL2 on Ubuntu 18.04 to run Ruby code in Windows 10. For example, running Ruby on Rails is easily done with no special setup required.

In case of Ruby2D: The installation went fine but, I get an error when running any Ruby2D file, even the most basic one:

I get this error in Console:

How do I "add" (or config) a "video device" to my Ubuntu on the WSL2?

0 投票
0 回答
42 浏览

ruby - 编译时在 Ocra 中出现 Ocra 错误“No such file or directory @ rb_sysopen”

“没有这样的文件或目录@ rb_sysopen - C:/Users//OneDrive/Desktop/ruby/fiber.so (Errno::ENOENT)”当我尝试将我的应用程序编译成 exe 时,Ocra 不断抛出。我使用了其他人提到的修复程序,但它们都不起作用,可能是因为它们中的大多数是针对旧版本的 Ruby 的。我正在使用 Ruby2d,并将其包含在我的命令中: ocra --verbose move.rb --no-dep-run --gem-minimal=ruby2d