

CentOS8安装Geant4笔记(二):CentOS8安装Qt5.15.2并测试运行环境
source link: https://blog.51cto.com/hongpangzi/5107915
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

在服务器CentOs8.2上安装geant4软件,但是运行不起来,所以本节开始主要是安装qt,测试qt基本功能。
<br>
添加qt环境到系统环境中,是geant4启动qt的必要条件。
<br>
下载Qt在线安装程序
Qt在线安装包下载地址: https://download.qt.io/archive/online_installers/4.3/
<br>
步骤一:复制解压改权限
步骤二:运行
yum install libxcb-devel
export QT_DEBUG_PLUGINS=1
find / -name libxcb-icccm.so.4
解决一阵,出其他错误,解决不了,暂时不钻了,替换安装版本试一试:
替换版本是成功得,但是最后笔者在启动qtcreator还是遇到这个问题,解决方法如下:
yum install xcb-util-image
yum install xcb-util-keysyms
十几分钟到几十分钟吧,看网络了,最后如下图:
步骤三:添加Qt的环境变量
root用户的配置(仅使用root用户时有效):
export QTDIR=/opt/Qt
export PATH=$QTDIR/5.15.2/gcc_64/bin:$QTDIR/Tools/QtCreator/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/5.15.2/gcc_64/lib:$LD_LIBRARY_PATH
普通用户的配置(仅使用普通用户时生效):
export QTDIR=/opt/Qt
export PATH=$QTDIR/5.15.2/gcc_64/bin:$QTDIR/Tools/QtCreator/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/5.15.2/gcc_64/lib:$LD_LIBRARY_PATH
步骤四:测试qmake
重启,测试普通用户,root用户:
步骤五:打开qtcreaor
直接命令行输入qtcreator,报错缺少“libxcb-icccm.so.4”,安装即可:
yum install xcb-util-wm
运行出现错误,需要设置下面这个再运行:
export QT_DEBUG_PLUGINS=1
仔细看,发现还是之前换qt在线安装出现的老问题:
yum install xcb-util-image
yum install xcb-util-keysyms
再运行qtcreator即可,如下图:
<br>
第一个程序“Hello world”
Recommend
-
19
点击上方蓝字可直接关注!方便下次阅读。如果对你有帮助,可以点个在看,让它可以帮助到更多老铁~ 原教程地址: https://learnopengl-cn.github.io/01%20Getting%20started/05%20Shaders/ 一、 着色器概述
-
9
CentOS8卸载podman安装docker - 轶哥CentOS8卸载podman安装docker由于CentOS8默认安装了podman,因此在CentOS8中安装docker会导致冲突引发如下异常。 Error: Problem 1: problem with installed package podman-2.0.5-5.module_el8...
-
9
centos8以源码方式安装php7.4如果您发现本文排版有问题,可以先点击下面的链接切换至老版...
-
8
Centos8 安装 Caddy Web服务器,你会了吗?-51CTO.COM Centos8 安装 Caddy Web服务器,你会了吗? 作者:逄增宝 2022-02-21 08:31:49 服务器
-
10
如何在Fedora33/CentOS8上安装Charles根证书 2020-12-20 :: 荒野無燈 :: Mod 2020-12-20(db0d966) #Fedora #Charles
-
29
vm虚拟机安装CentOS8.2服务器系统 原创 长沙红胖子 2022-03-11 17:18:53...
-
10
什么是K8SK8S,全称Kubernetes,在希腊语中代表了舵手的意思,是一个大规模的容器集群管理系统。它的前身是Google的Borg系统,所以可以认为是开源版本的Borg系统。2014年Google决定对其进行开源。 ###K8S有什么用 K8S可以实现容器集群...
-
11
Centos8 安装LAMP 2019-11-07 发布在
-
9
A beautiful sunrise Centos8 安装并启用SSHD 安装sshd dnf install openssh-server
-
7
【笔记】CentOS8报错:Failed to set locale... 2022-09-07 1...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK