Linux(SUSE)上root用户安装qt的问题的记录

14 篇文章 1 订阅

1. 资料准备

我们这里安装时候使用的是Qt5.12.12版本。
文件的名称是:qt-opensource-linux-x64-5.12.12.run.

2. 遇到的问题

我想安装给所有的用户使用,因此切换到root用户安装.
安装过程中报错如下:

bogon:/opt # ./qt-opensource-linux-x64-5.12.12.run 
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, xcb.

Aborted (core dumped)

这时候,我想到,是不是我已经安装了系统自带安装Software里面的Qt ,结果卸载了仍旧报上面的错误。

3. 意外的解决

当我切换到普通用户的时候,发现能够安装了,输出下面的内容:

xxx@bogon:/opt> ./qt-opensource-linux-x64-5.12.12.run 
[1] Warning: Qt Account settings file [/home/xxx/.local/share/Qt/qtaccount.ini] does not exist.
[1] Warning: Could not find Qt Account.
[127] Warning: No QtAccount credentials found. Please login via the maintenance tool of the SDK.
[1210] Warning: No QtAccount credentials found. Please login via the maintenance tool of the SDK.
[1210] Warning: No QtAccount credentials found. Please login via the maintenance tool of the SDK.

并且出现了如下的界面:
Qt安装开始首界面

4. 结论

看来不同的用户对于Qt的安装是有影响的。

5. 内容更新

后来发现在普通用户下sudo su执行带界面的都不太好使,需要在在root下开vnc,然后再执行一些带界面的就好用了。
具体忘记了,好像先执行了gedit等系统的工具,就能root用户执行上面的安装了。

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值