当我尝试运行使用 Nix 包管理器安装或构建的 OpenGL 的应用程序时,会出现 GLX 错误:
$ /nix/store/p6fwy23nfcadxr4i780knajvmzga17aa-glxinfo-8.1.0/bin/glxinfo
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 156 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 50
Current serial number in output stream: 49
Run Code Online (Sandbox Code Playgroud) 我想从容器内部访问特殊的 USB 设备(不是简单的闪存驱动器)。我/dev/bus/usb
在容器内绑定,lsusb
毫不费力地列出 USB:
$ lsusb
...
Bus 002 Device 002: ID 0a89:0009
...
Run Code Online (Sandbox Code Playgroud)
但我的程序无法与此设备交互。