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

问题描述 投票:1回答:1

您好我在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.*

你能帮我解决这个问题。我对此并不太了解

centos wine
1个回答
0
投票

你错过了DISPLAY变量。

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

export DISPLAY=:0

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

见:How to make Xvfb display visible?

© www.soinside.com 2019 - 2024. All rights reserved.