Is it possible to install gcc 32 bit in RHEL 7 or above?

本文解决在Red Hat Enterprise Linux 7.4 (64位)上编译postgres odbc driver时遇到的问题,详细说明了32位gcc在RHEL 7.0及以上版本中不可用,并提供了64位gcc的正确安装步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://access.redhat.com/solutions/3443371

Is it possible to install gcc 32 bit in RHEL 7 or above?

 SOLUTION 已验证 - 已更新 2018年五月16日01:20 - 

English 

环境

  • Red Hat Enterprise Linux (RHEL)
    • 7.x

问题

We tried to compile postgresodbc driver in Red Hat Enterprise Linux 7.4 64-bit. It got failed with below error:

Raw

checking if : is a manifest tool... no
checking how to run the C preprocessor... /usr/bin/cpp
configure: error: in `/path/to/driver/psqlodbc9/psqlodbc-09.03.0100':
configure: error: C preprocessor "/usr/bin/cpp" fails sanity check

决议

Be aware that 32-bit version of gcc is not shipped by Red Hat in RHEL 7.0 or above. However, refer to the gcc 64-bit installation step below.

Make sure to install gcc-c++ and gcc on the system, provided by gcc-c++ and gcc packages respectively. The yum install command must be run as root user.

Raw

# yum install gcc gcc-c++

诊断步骤

To check if the gcc command exists.

Raw

$ which gcc
/usr/bin/gcc

$ rpm -qf /usr/bin/gcc
gcc-4.8.5-11.el7.x86_64
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值