终端中提示如下
/usr/bin/ld:/usr/lib/gcc/i686-magic-linux/3.4.3/../../../libc.so: file format not recognized; treating as linker script
/usr/bin/ld:/usr/lib/gcc/i686-magic-linux/3.4.3/../../../libc.so:5: syntax error
无端端的两个lib.so的文件都有错了,现在什么都编译不了
环境:RedFlag 5.0 , 不够安装2.0beta3中的xorg,和kde的rpm包升级,
试过安装2.0beta3中的gcc的包,但情况不变
Thread model: posix
gcc version 3.4.3 20041114 (Magic Linux 3.4.3-3)
是不是下载gcc的库文件覆盖原来的那两个就行
rpm -ivh --force --nodeps `ls | grep "gcc" `
但是上面这样装不够的
还需要如下
rpm -ivh --force --nodeps `ls | grep "libstd" `
因为我只用c++这样就我的c++程序就没问题了,可以编译了
[root@localhost System_Sources]# rpm -ivh libstdc++6-4.1.1-3mdk.i586.rpm --force --nodeps
warning: libstdc++6-4.1.1-3mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 70771ff3
Preparing... ########################################### [100%]
1:libstdc++6 ########################################### [100%]
[root@localhost System_Sources]# rpm -ivh libstdc++6-devel-4.1.1-3mdk.i586.rpm --force --nodeps
warning: libstdc++6-devel-4.1.1-3mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 70771ff3
Preparing... ########################################### [100%]
1:libstdc++6-devel ########################################### [100%]
[root@localhost System_Sources]# rpm -ivh libstdc++6-static-devel-4.1.1-3mdk.i586.rpm --force --nodeps
warning: libstdc++6-static-devel-4.1.1-3mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 70771ff3
Preparing... ########################################### [100%]
1:libstdc++6-static-devel########################################### [100%]
[root@localhost System_Sources]# rpm -ivh libgomp-4.3.2-7.i386.rpm
warning: libgomp-4.3.2-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing... ########################################### [100%]
1:libgomp ########################################### [100%]
[root@localhost System_Sources]# rpm -ivh libgcc-4.3.2-7.i386.rpm
warning: libgcc-4.3.2-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing... ########################################### [100%]
file /lib/libgcc_s.so.1 from install of libgcc-4.3.2-7 conflicts with file from package libgcc-3.4.3-9.EL4.2
file /usr/sbin/libgcc_post_upgrade from install of libgcc-4.3.2-7 conflicts with file from package libgcc-3.4.3-9.EL4.2
[root@localhost System_Sources]# rpm -U libgcc-4.3.2-7.i386.rpm
warning: libgcc-4.3.2-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
[root@localhost systemsources]# rpm -ivh cpp-4.3.2-7.i386.rpm
warning: cpp-4.3.2-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
error: Failed dependencies:
libmpfr.so.1 is needed by cpp-4.3.2-7.i386
/usr/bin/ld:/usr/lib/gcc/i686-magic-linux/3.4.3/../../../libc.so: file format not recognized; treating as linker script
/usr/bin/ld:/usr/lib/gcc/i686-magic-linux/3.4.3/../../../libc.so:5: syntax error
无端端的两个lib.so的文件都有错了,现在什么都编译不了
环境:RedFlag 5.0 , 不够安装2.0beta3中的xorg,和kde的rpm包升级,
试过安装2.0beta3中的gcc的包,但情况不变
Thread model: posix
gcc version 3.4.3 20041114 (Magic Linux 3.4.3-3)
是不是下载gcc的库文件覆盖原来的那两个就行
rpm -ivh --force --nodeps `ls | grep "gcc" `
但是上面这样装不够的
还需要如下
rpm -ivh --force --nodeps `ls | grep "libstd" `
因为我只用c++这样就我的c++程序就没问题了,可以编译了
[root@localhost System_Sources]# rpm -ivh libstdc++6-4.1.1-3mdk.i586.rpm --force --nodeps
warning: libstdc++6-4.1.1-3mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 70771ff3
Preparing... ########################################### [100%]
1:libstdc++6 ########################################### [100%]
[root@localhost System_Sources]# rpm -ivh libstdc++6-devel-4.1.1-3mdk.i586.rpm --force --nodeps
warning: libstdc++6-devel-4.1.1-3mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 70771ff3
Preparing... ########################################### [100%]
1:libstdc++6-devel ########################################### [100%]
[root@localhost System_Sources]# rpm -ivh libstdc++6-static-devel-4.1.1-3mdk.i586.rpm --force --nodeps
warning: libstdc++6-static-devel-4.1.1-3mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 70771ff3
Preparing... ########################################### [100%]
1:libstdc++6-static-devel########################################### [100%]
[root@localhost System_Sources]# rpm -ivh libgomp-4.3.2-7.i386.rpm
warning: libgomp-4.3.2-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing... ########################################### [100%]
1:libgomp ########################################### [100%]
[root@localhost System_Sources]# rpm -ivh libgcc-4.3.2-7.i386.rpm
warning: libgcc-4.3.2-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing... ########################################### [100%]
file /lib/libgcc_s.so.1 from install of libgcc-4.3.2-7 conflicts with file from package libgcc-3.4.3-9.EL4.2
file /usr/sbin/libgcc_post_upgrade from install of libgcc-4.3.2-7 conflicts with file from package libgcc-3.4.3-9.EL4.2
[root@localhost System_Sources]# rpm -U libgcc-4.3.2-7.i386.rpm
warning: libgcc-4.3.2-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
[root@localhost systemsources]# rpm -ivh cpp-4.3.2-7.i386.rpm
warning: cpp-4.3.2-7.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
error: Failed dependencies:
libmpfr.so.1 is needed by cpp-4.3.2-7.i386
转载于:https://blog.51cto.com/huangbao/150773