【问题标题】:Linux Centos upgrade glibc 2.12 to 2.14 config errorLinux Centos 升级 glibc 2.12 到 2.14 配置错误
【发布时间】:2017-05-26 22:39:52
【问题描述】:

我正在尝试在 Centos 上将 2.12 升级到 2.14,并且一直在遵循这个示例:How to upgrade glibc from version 2.12 to 2.14 on CentOS?

当我得到输出时,所有的工作都达到了../configure --prefix=/usr/share/doc/glibc-2.14

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/glibc_install/glibc-2.14/build':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

config.log 中核心测试的输出:

configure:2363: checking build system type
configure:2377: result: x86_64-unknown-linux-gnu
configure:2397: checking host system type
configure:2410: result: x86_64-unknown-linux-gnu
configure:2479: checking for gcc
configure:2509: result: no
configure:2572: checking for cc
configure:2619: result: no
configure:2675: checking for cl.exe
configure:2705: result: no
configure:2729: error: in `/root/glibc_install/glibc-2.14/build':
configure:2731: error: no acceptable C compiler found in $PATH
See `config.log' for more details

感谢您对此的任何帮助:)

【问题讨论】:

  • which gcc 产生什么? gcc --version 产生了什么?
  • 请出示来自config.log的相关结果。
  • 没有编译器就无法编译源代码。您需要安装gccmakeautomakeautoconfbinutilsglibc-headers

标签: linux centos glibc automake


【解决方案1】:

您似乎缺少 C 编译器,例如

checking for gcc... no

我建议从 Employed Russian 的问题开始:

gcc --version 是否运行并报告版本号?如果没有,请继续。

which gcc 会给你一条路径吗?如果没有,继续

如果以上任何一个都是肯定的,我建议您查看 $PATH 变量的内容。

如果两者都不是,请尝试:

sudo yum group install "Development Tools"

...根据需要使用或不使用 sudo。

【讨论】:

    猜你喜欢
    • 2016-06-07
    • 2018-01-07
    • 2017-09-25
    • 1970-01-01
    • 1970-01-01
    • 2014-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多