RedHat Linux中的gcc问题
由于我是一个初学者,不小心卸载了gcc,我重新安装gcc时,出现了下面的情况:
[root@localhost CD]# rpm -ivh cpp-4.1.2-48.el5.i386.rpm
warning: cpp-4.1.2-48.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package cpp-4.1.2-48.el5.i386 is already installed
[root@localhost CD]# rpm -ivh glibc-headers-2.5-49.i386.rpm
warning: glibc-headers-2.5-49.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
kernel-headers is needed by glibc-headers-2.5-49.i386
kernel-headers >= 2.2.1 is needed by glibc-headers-2.5-49.i386
[root@localhost CD]# rpm -ivh glibc-devel-2.5-49.i386.rpm
warning: glibc-devel-2.5-49.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
glibc-headers is needed by glibc-devel-2.5-49.i386
glibc-headers = 2.5-49 is needed by glibc-devel-2.5-49.i386
[root@localhost CD]# rpm -ivh libgomp-4.4.0-6.el5.i386.rpm
warning: libgomp-4.4.0-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
package libgomp-4.4.0-6.el5.i386 is already installed
[root@localhost CD]# rpm -ivh gcc-4.1.2-48.el5.i386.rpm
warning: gcc-4.1.2-48.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-48.el5.i386
请大家帮个忙,给个解决的办法,谢谢了!
------解决方案--------------------
su root //使用root权限,yum 必须的
-y 默认一切询问都回答yes,其实你也没有选择的余地
gcc c语言的
gcc-c++ c++的
gdb 调试