gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 17:23:15 25 4
gpt4 key购买 nike

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

你能帮我解决这个问题吗?我对此不是很了解

最佳答案

您缺少 DISPLAY 变量。

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

export DISPLAY=:0

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

参见:How to make Xvfb display visible?

关于centos - 确保您的 X 服务器正在运行并且 $DISPLAY 设置正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52553112/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com