Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

how to Add "Video Device" (GUI) on WSL2 - Ruby2D Issue

$
0
0

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:

require 'ruby2d'show

I get this error in Console:

error: XDG_RUNTIME_DIR not set in the environment.Error: (SDL_Init) No available video deviceerror: XDG_RUNTIME_DIR not set in the environment.Error: (SDL_CreateWindow) No available video deviceError: (GL2 / SDL_GL_CreateContext) Video subsystem has not been initializedError: An OpenGL context could not be created

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


Viewing all articles
Browse latest Browse all 2930

Trending Articles