首先进入qt-everywhere-opensource-src-4.8.5目录,然后执行./configure -prefix (自己要安装的目录)
接着根据提示输入“o”,“yes”,接下来如果出现如下错误时
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/gcgily/qt-everywhere-opensource-src-4.8.5/mkspecs/linux-g++
使用下面的命令即可:
yum install libX11-devel --nogpg
yum install libXext-devel --nogpg
yum install libXtst-devel --nogpg
等着执行完,执行gmake,gmake install这两个命令的执行时间有点长。