简体   繁体   中英

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.

You may need to instal i686 components of GCC:

yum install libgcc.i686 glibc-devel.i686

For C++ you will also need

yum install libstdc++-devel.i686

错误消息告诉您库的 x86 和 x86_64 版本必须同步,因此您需要安装/更新两者:

yum install libgcc libgcc.i686

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM