下载 qt-everywhere-opensource-src-4.8.4.tar.gz
================准备工作====================
yum install kernel-headers-$(uname -r)
yum install kernel-devel-$(uname -r)
yum install gcc gcc-c++ gdb make
yum install libX11-devel libXext-devel libXtst-devel
================开始安装====================
tar -xzvf qt-everywhere-opensource-src-4.8.4.tar.gz
cd qt-everywhere-opensource-src-4.8.4
./configure
gmake -------(需要时间较长, 之后会在 /usr/local/Trolltech/ 自动生成 Qt-4.8.4 )
gmake install
vi /etc/profile
#在最后添加
PATH=/usr/local/Trolltech/Qt-4.8.4/bin:$PATH
export PATH