https://access.redhat.com/solutions/3443371
Is it possible to install gcc 32 bit in RHEL 7 or above?
SOLUTION 已验证 - 已更新 2018年五月16日01:20 -
环境
- 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:
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.
# yum install gcc gcc-c++
诊断步骤
To check if the gcc
command exists.
$ which gcc
/usr/bin/gcc
$ rpm -qf /usr/bin/gcc
gcc-4.8.5-11.el7.x86_64