Oracle Linux 6.2 (RHEL6) install QtSDK my system for Oracle Linux 6.2 (compatible with RHEL 6.2) to qt.nokia.com download the latest QtSdk-offline-linux-x86-v1.2.1.run www.2cto.com # chmod x + u QtSdk-offline-linux-x86-v1.2.1.run #./QtSdk-offline-linux-x86-v1.2.1.run
Everything is installed by default. After installation, modify the environment variables and change the profile or bashrc under/etc. Open it in the vi editor. # vi/etc/profile (note: my profile is modified. You can also modify bashrc or create an sh file by yourself) and then add the following content at the end: QTDIR =/opt/QtSDK/Desktop/Qt/4.8.1/gccPATH = $ QTDIR/bin: $ PATH www.2cto.com LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATHexport qtdir path LD_LIBRARY_PATH then, exit vi editor with ESC colon wq # source/etc/profile to make environment variables take effect immediately. Run the following command to check whether the variables take effect:
# Qmake-v www.2cto.com my output is: QMake version 2.01 aUsing Qt version 4.8.1 in/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib