## 概述c++
RedHat6.5 64位系統上安裝QtSDK時,報:**You need a C++ compiler. Please install it using the System Pack
bash
You need a C++ compiler. Please install it using the System Package Management tools.** 錯誤。ide
網上搜索後肯定,緣由是我安裝RedHat系統時,未勾選C++開發環境對應的包。如今只好本身手動安裝。spa
好在,RedHat安裝鏡像中是有對應的包的,直接複製大系統中,手動安裝便可。orm
## 方法開發
在Redhat鏡像的Packages文件夾下,找到下述包,手動安裝便可。it
rpm -ivh glibc-headers-2.12-1.132.el6.x86_64.rpm rpm -ivh glibc-devel-2.12-1.132.el6.x86_64.rpm rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm rpm -ivh libgomp-4.4.7-4.el6.x86_64.rpm rpm -ivh libstdc++-4.4.7-4.el6.x86_64.rpm rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm rpm -ivh glibc-devel-2.12-1.132.el6.x86_64.rpm rpm -ivh libstdc++-devel-4.4.7-4.el6.x86_64.rpm rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm rpm -ivh gdb-7.2-60.el6_4.1.x86_64.rpm
有些已經存在了,按序執行一遍便可。class
手動安裝完成後,終端輸入:gcc
gcc -v g++ -v gdb -v
都沒報錯,說明C++開發環境安裝完成,而後就能夠安裝QtSDK了。
搜索