欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

gcc 手动安装

程序员文章站 2023-04-06 10:44:57
由于公司内部服务器没有联通外网,只能苦逼的手动安装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(自带的版本太老)

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