安装环境linux 4.4
安装系统的时候没装gcc什么的。!
[root@sun Server]# rpm -ivh gcc-4.1.1-52.el5.i386.rpm
warning: gcc-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
cpp = 4.1.1-52.el5 is needed by gcc-4.1.1-52.el5.i386
libgomp = 4.1.1-52.el5 is needed by gcc-4.1.1-52.el5.i386
libgomp.so.1 is needed by gcc-4.1.1-52.el5.i386
先安装libgomp (Disk2),然后再次运行rpm -ivh gcc-4.1.1-52.el5.i386.rpm ,结果如下:
[root@sun Server]# rpm -ivh gcc-4.1.1-52.el5.i386.rpm
warning: gcc-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
cpp = 4.1.1-52.el5 is needed by gcc-4.1.1-52.el5.i386
注意看,目前不再需要libgomp.so,我分析libgomp.so是libgomp的一个共享库 。
接下来安装cpp:
[root@sun Server]# rpm -ivh cpp-4.1.1-52.el5.i386.rpm (Disk1)
warning: cpp-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:cpp ########################################### [100%]
成功!YES!!!
高兴的太早啦。
[root@sun Server]# rpm -ivh gcc-c++-4.1.1-52.el5.i386.rpm
warning: gcc-c++-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
gcc = 4.1.1-52.el5 is needed by gcc-c++-4.1.1-52.el5.i386
libstdc++-devel = 4.1.1-52.el5 is needed by gcc-c++-4.1.1-52.el5.i386
观察发现,gcc-4.1.1-52.el5.i386.rpm已安装,不过系统还是提示需要,可能是没有libstdc++-devel的支持所致。
直接安装libstdc++-devel (Disk2)
[root@sun Server]# rpm -ivh libstdc++-devel-4.1.1-52.el5.i386.rpm
warning: libstdc++-devel-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libstdc++-devel ########################################### [100%]
gcc-c++ = 4.1.1-52.el5 is needed by gcc-objc++-4.1.1-52.el5.i386
注意:gcc-c++能独立安装,不过gcc-objc++必须和gcc-c++一起安装 。
不过,最后终于成功啦。嗨!功夫不负有心人,没白忙活。
configure: error: no acceptable C compiler found in $PATH
最新推荐文章于 2022-06-24 10:25:27 发布