由於公司內部伺服器沒有聯通外網,只能苦逼的手動安裝gcc(自帶的版本太老) rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm rpm -ivh mpfr-2.4.1-6.el6.x86 ...
由於公司內部伺服器沒有聯通外網,只能苦逼的手動安裝gcc(自帶的版本太老)
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-431.el6.x86_64.rpm
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 gcc-4.4.7-4.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 安裝cpp時碰到問題 warning: gcc-4.4.7-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: cpp = 4.4.7-17.el6 is needed by gcc-4.4.7-17.el6.x86_64 查看歷史安裝log warning: cpp-4.4.7-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY Preparing... ########################################### [100%] file /usr/bin/cpp from install of cpp-4.4.7-17.el6.x86_64 conflicts with file from package cpp-4.4.6-4.el6.x86_64 file /usr/libexec/gcc/x86_64-redhat-linux/4.4.4/cc1 from install of cpp-4.4.7-17.el6.x86_64 conflicts with file from package cpp-4.4.6-4.el6.x86_64 file /usr/share/man/man1/cpp.1.gz from install of cpp-4.4.7-17.el6.x86_64 conflicts with file from package cpp-4.4.6-4.el6.x86_64 發現cpp安裝有衝突,卸載cpp重裝 rpm -e cpp 繼續後續安裝....ok