centos7中的Qt版本 [英] Qt version in centos7
本文介绍了centos7中的Qt版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用centos7。要检查安装的qt版本,我正在使用命令 qmake --version
,该命令返回
I am using centos 7. To check the version of qt installed I am using the command qmake --version
which returns
Qmake version: 1.07a (Qt 3.3.8b).
Qmake is free software from Trolltech ASA.
但是当我输入命令 yum install qt
,我收到消息
However when I give the command yum install qt
, I get the message
Package 1:qt-4.8.5-13.el7.x86_64 already installed and latest version.
Nothing to do.
我不确定系统中安装了哪个版本的qt!我需要一个qt版本> 4.7。
I am not sure which version of qt is installed in my system! I need to have a qt version > 4.7.
推荐答案
我将文件.bash_profile编辑为
export QTDIR = / usr / local / Trolltech / Qt-4.8.2
export PATH = $ QTDIR / bin:$ PATH
在删除qt3之后,现在可以正常工作了
I edited the file .bash_profile as
export QTDIR=/usr/local/Trolltech/Qt-4.8.2
export PATH=$QTDIR/bin:$PATH
after removing qt3 and now its working fine.
这篇关于centos7中的Qt版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文