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

时间:2018-09-28 10:13:36

标签: centos wine

嗨,我已经在CentOS 7上安装了wine(版本wine-3.0.2)来运行.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.*

您能帮我解决这个问题吗?我对此不太了解

1 个答案:

答案 0 :(得分:0)

您缺少DISPLAY变量。

尝试将其设置为:0(假设您的显示在屏幕0上),例如

export DISPLAY=:0

如果您没有运行X服务器,则可以安装Xvfb

请参阅:How to make Xvfb display visible?