centos 请确保X服务器正在运行,并且$DISPLAY设置正确

polkgigr  于 2022-11-07  发布在  其他
关注(0)|答案(1)|浏览(1125)

你好,我已经安装了葡萄酒(版本葡萄酒-3.0.2)在CentOS 7上运行我的。vbs文件。但在运行时,它得到了以下错误。


* 000f:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2

000f:fixme:service:scmdatabase_autostart_services Auto-start service L"WineBus" failed to start: 2
0019:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0019:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0019:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0019:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0019:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0009:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0009:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.*

你能帮我修一下吗?我也不太清楚

inb24sb2

inb24sb21#

您缺少DISPLAY变量
尝试将其设置为:0(假设您的显示器在屏幕0上),例如

export DISPLAY=:0

如果您没有运行X服务器,则可以安装Xvfb
请参阅:How to make Xvfb display visible?

相关问题