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

阅读: 评论:0

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

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

1. 资料准备

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

2. 遇到的问题

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

bogon:/opt # ./qt-opensource-linux-x64-5.12.12.run 
b: 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.

并且出现了如下的界面:

4. 结论

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

5. 内容更新

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

本文发布于:2024-01-27 19:32:04,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/17063551262194.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:用户   SUSE   Linux   qt   root
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23