Linux中发觉gcc未安装,以下为gcc安装过程中的依赖包
rpm-ivhcpp-4.1.2-42.el5.i386.rpm
rpm-ihvkernel-headers-2.6.18-92.el5.i386.rpm
rpm-ivhglibc-headers-2.5-24.i386.rpm
rpm-ivhglibc-devel-2.5-24.i386.rpm
rpm-ivhlibgomp-4.1.2-42.el5.i386.rpm
rpm-ivhgcc-4.1.2-42.el5.i386.rpm
rpm-ihvlibstdc++-devel-4.1.2-42.el5.i386.rpm
rpm-ihvgcc-c++-4.1.2-42.el5.i386.rpm
找到对应的包安装即可(版本可能不同)
[root@LinuxServer]#rpm-ivhgcc-4.1.2-48.el5.x86_64.rpm
warning:gcc-4.1.2-48.el5.x86_64.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
error:Faileddependencies:
glibc-devel>=2。2。90-12isneededbygcc-4。1。2-48。el5。x86_64libgomp>=4。1。2-48。el5isneededbygcc-4。1。2-48。el5。x86_64[root@LinuxServer]#ls-lglibc-devel-2。5-49。glibc-devel-2。5-49。i386。rpmglibc-devel-2。5-49。x86_64。rpm[root@LinuxServer]#ls-lglibc-devel-2。5-49。[root@LinuxServer]#rpm-ivhglibc-devel-2。5-49。x86_64。rpmwarning:glibc-devel-2。5-49。x86_64。rpm:HeaderV3DSAsignature:NOKEY,keyID37017186error:Faileddependencies:glibc-headersisneededbyglibc-devel-2。5-49。x86_64glibc-headers=2。
5-49isneededbyglibc-devel-2。5-49。x86_64[root@LinuxServer]#rpm-ivhglibc-headers-2。5-49。x86_64。rpmwarning:glibc-headers-2。5-49。x86_64。rpm:HeaderV3DSAsignature:NOKEY,keyID37017186error:Faileddependencies:kernel-headersisneededbyglibc-headers-2。5-49。x86_64kernel-headers>=2。2。1isneededbyglibc-headers-2。5-49。x86_64[root@LinuxServer]#rpm-ivhkernel-headers-2。6。18-194。el5。x86_64。rpmwarning:kernel-headers-2。6。18-194。el5。x86_64。rpm:HeaderV3DSAsignature:NOKEY,keyID37017186Preparing。
。。###########################################[100%]1:kernel-headers###########################################[100%][root@LinuxServer]#rpm-ivhglibc-headers-2。5-49。x86_64。rpmwarning:glibc-headers-2。5-49。x86_64。rpm:HeaderV3DSAsignature:NOKEY,keyID37017186Preparing。。。###########################################[100%]1:glibc-headers###########################################[100%][root@LinuxServer]#rpm-ivhglibc-devel-2。5-49。x86_64。rpmwarning:glibc-devel-2。5-49。x86_64。
rpm:HeaderV3DSAsignature:NOKEY,keyID37017186Preparing。。。###########################################[100%]1:glibc-devel###########################################[100%][root@LinuxServer]#rpm-ivhgcc-4。1。2-48。el5。x86_64。rpmwarning:gcc-4。1。2-48。el5。x86_64。rpm:HeaderV3DSAsignature:NOKEY,keyID37017186error:Faileddependencies:libgomp>=4。1。2-48。el5isneededbygcc-4。1。2-48。el5。x86_64[root@LinuxServer]#rpm-ivhlibgomp-4。4。0-6。el5。libgomp-4。4。0-6。el5。i386。rpmlibgomp-4。
4。0-6。el5。x86_64。rpm[root@LinuxServer]#rpm-ivhlibgomp-4。4。0-6。el5。x86_64。rpmwarning:libgomp-4。4。0-6。el5。x86_64。rpm:HeaderV3DSAsignature:NOKEY,keyID37017186Preparing。。。###########################################[100%]1:libgomp###########################################[100%][root@LinuxServer]#rpm-ivhgcc-4。1。2-48。el5。x86_64。rpmwarning:gcc-4。1。2-48。el5。x86_64。rpm:HeaderV3DSAsignature:NOKEY,keyID37017186Preparing。。。###########################################[100%]1:gcc###########################################[100%]
本文原创地址://q13zd.cn/lxtzfxgwazyx.html编辑:刘遄,审核员:暂无