[英]How to install a 32bit gcc compiler on a X86_64 CentOS system
I have tried the following command:我尝试了以下命令:
yum install libgcc.i686 --setopt=protected_multilib=false
But I got some error message from the output:但是我从输出中收到了一些错误消息:
Transaction Check Error:
package libgcc-4.8.2-8.el6.x86_64 (which is newer than libgcc-4.4.7-18.el6_9.2.i686) is already installed
So how to fix this issue?那么如何解决这个问题呢? I think it's acceptable to keep both two arch version compilers in the system.
我认为在系统中同时保留两个 arch 版本编译器是可以接受的。
You may need to instal i686
components of GCC:您可能需要安装 GCC 的
i686
组件:
yum install libgcc.i686 glibc-devel.i686
For C++ you will also need对于 C++,您还需要
yum install libstdc++-devel.i686
错误消息告诉您库的 x86 和 x86_64 版本必须同步,因此您需要安装/更新两者:
yum install libgcc libgcc.i686
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.