Linux下Qt安装之qt-x11-opensource-src-4.3.2的安装与配置
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
搞了我一天,终于在linux下成功安装了Qt,我用的系统是Fedora 9。首先下载qt-x11-opensource-src-4.3.2.tar.gz源码包(地址是:http://down1.chinaunix.net/distfiles/qt-x11-opensource-src-4.3.2.tar.gz,将这个地址直接粘贴到迅雷的新建任务中进行下载)。
下载好源码包后,我们来一步一步地操作:
(1)将源码包放到Linux下的“/tmp/”目录
(2)终端上切换工作目录:cd /tmp
(3)解压该压缩文件:gunzip qt-x11-opensource-src-4.3.2.tar.gz
tar xvf qt-x11-opensource-src-4.3.2.tar
(4)此时在系统中会生成一个/tmp/qt-x11-opensource-src-4.3.2目录,进入到该目录:cd /tmp/qt-x11-opensource-src-4.3.2
执行configure:./configure
(5)编译Qt:gmake
(6)以管理员的身份安装Qt:gmake install
安装成功后为系统配置一些环境变量,打开/etc/目录下的profile文件在末尾加上以下内容:
PATH=/usr/local/Trolltech/Qt-4.3.2/bin:$PATH
QTDIR=/usr/local/Trolltech/Qt-4.3.2
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PATH QTDIR MANPATH LD_LIBRARY_PATH
重启一下系统就好了。




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)