首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >configure: error:*这些关键程序缺失或太旧:在Opensuse 42.3上安装glibc2.12时,gcc生成

configure: error:*这些关键程序缺失或太旧:在Opensuse 42.3上安装glibc2.12时,gcc生成
EN

Stack Overflow用户
提问于 2017-10-03 07:08:49
回答 2查看 12.1K关注 0票数 4

我正在尝试安装glibc-2.12.2,因为Haskell-stack特别需要2.12版本。

代码语言:javascript
复制
 ldd --version
 ldd (GNU libc) 2.26
 Copyright (C) 2017 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 Written by Roland McGrath and Ulrich Drepper.

错误是-

代码语言:javascript
复制
 rajkumar@localhost:~/Downloads/glibc-2.12.2/build-tree> ../configure 
 configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking for /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld... /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld
 checking version of /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld... 2.29.0.20170830, ok
 checking for pwd... /usr/bin/pwd
 checking for gcc... gcc
 checking version of gcc... 7.2.1, bad
 checking for gnumake... no
 checking for gmake... gmake
 checking version of gmake... 4.2.1, bad
 checking for gnumsgfmt... no
 checking for gmsgfmt... no
 checking for msgfmt... msgfmt
 checking version of msgfmt... 0.19.8.1, ok
 checking for makeinfo... no
 checking for sed... sed
 checking version of sed... v. ?.??, bad
 checking for autoconf... no
 configure: error:
 *** These critical programs are missing or too old: gcc make
 *** Check the INSTALL file for required versions.

但是我已经安装了gcc和make。

代码语言:javascript
复制
 rajkumar@localhost:~/Downloads/glibc-2.12.2/build-tree> sudo zypper install make
 Loading repository data...
 Reading installed packages...
 'make' is already installed.
 No update candidate for 'make-4.2.1-2.1.x86_64'. The highest available   version is already installed.
 Resolving package dependencies...

 Nothing to do.
 rajkumar@localhost:~/Downloads/glibc-2.12.2/build-tree> sudo zypper install gcc
 Loading repository data...
 Reading installed packages...
 'gcc' is already installed.
 No update candidate for 'gcc-7-2.4.x86_64'. The highest available version is already installed.
 Resolving package dependencies...

 Nothing to do.

我已经安装了glibc 2.26。如何在opensuse上将版本降级到2.12。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2017-10-03 13:18:58

我正在尝试安装glibc-2.12.2,因为Haskell-stack特别需要2.12版本。

这不太可能是真的: GLIBC是向后兼容的(旧程序继续在新的GLIBC版本上工作)。

i已经安装了glibc2.26。如何在opensuse上将版本降级到2.12。

如果你成功了,你的系统将无法启动。你真的不想这么做。

相反,你应该描述你的实际问题。

另外,你的gcc当然不会太旧。相反,您的GLIBC-2.12 configure太旧了,无法理解这样一个新的gcc是足够新的。

票数 5
EN

Stack Overflow用户

发布于 2020-06-08 06:45:22

我也遇到了同样的问题,并按照this postMark Plotnick的建议解决了它。

这可能会起作用:编辑配置文件,查找3.79* | 3.[89]*,将其更改为3.79* | 3.[89]* | 4.*

问题是,在验证make的版本时,.configure文件使用了不完整的正则表达式。添加| 4.*可确保选择您(较新)安装的版本。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46534957

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档