我正在尝试在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
感谢您对此提供的任何帮助:)
答案 0 :(得分:3)
看起来您缺少C编译器,例如
checking for gcc... no
我建议从雇用俄语的问题开始:
gcc --version
是否会运行并报告版本号?如果不是,请继续。
which gcc
会给你一条路吗?如果不是,请继续
如果上述任何一项都是肯定的,我建议您查看$ PATH变量的内容。
如果两者都不是,请尝试:
sudo yum group install "Development Tools"
......根据需要使用或不使用sudo。