QXcbConnection:在Linux上安装QT时,无法连接以显示异常终止 [英] QXcbConnection: Could not connect to display Aborted, when installing QT on linux

查看:1213
本文介绍了QXcbConnection:在Linux上安装QT时,无法连接以显示异常终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用PuTTY从Windows机器远程地在Linux机器上安装Qt. 当我运行命令在Linux上安装Qt时,出现以下错误:

I am trying to install Qt on a Linux machine remotely from a Windows machine using PuTTY. When I run the command to install Qt on Linux I get the following error:

~/QT#  ./qt-unified-linux-x64-2.0.4-online.run
QXcbConnection: Could not connect to display
Aborted

请提出任何解决方法.

推荐答案

您可以使用该Linux发行版的软件存储库.

You can use the software repository of that Linux distribution.

例如,如果是Debian或Ubuntu:

For example, if it's Debian or Ubuntu:

sudo apt-get install qtbase5-dev

但是,如果您确实要使用安装程序(通常在需要特定的Qt版本时),请尝试以下选项之一:

But if you really want to use the installer (usually, when specific Qt version is needed), then try one of the options:

  • 在该计算机上运行X服务器
  • 使用在线安装程序的--script选项(您必须在此处编写如下脚本: https://stackoverflow .com/a/34032216/4742108 ),无论如何它可能仍需要UI
  • 查看脱机安装程序是否可以选择在没有UI的情况下运行
  • run an X server on that machine
  • use the --script option of the online installer (you'll have to write a script like here: https://stackoverflow.com/a/34032216/4742108), it will probably need UI anyways
  • see if the offline installer has an option to run without UI

这篇关于QXcbConnection:在Linux上安装QT时,无法连接以显示异常终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆