gpt4 book ai didi

linux - 尝试在 Ubuntu 18、Linux 上安装 QT 包时出现 QXcbConnection 错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:47:21 25 4
gpt4 key购买 nike

我在 mu VMware 软件上有 Ubuntu 18,并尝试基于 this youtube video 安装 QT .问题是当我想运行以下命令时:

sudo ./qt-opensource-linux-x64-5.11.3.run

我收到这个错误:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QXcbConnection: Could not connect to display Aborted

有什么帮助吗?非常感谢。

最佳答案

看起来这可能只是 DISPLAY 环境变量未设置的情况。

尝试使用 X11 转发而不是 sudossh。所以像...

ssh -X root@localhost <full-path-to>/qt-opensource-linux-x64-5.11.3.run

关于linux - 尝试在 Ubuntu 18、Linux 上安装 QT 包时出现 QXcbConnection 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57224960/

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