首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Centos 6.10上的Broke yum,由于缺少libunwind,无法安装缺少的GLIBC出错

Centos 6.10上的Broke yum,由于缺少libunwind,无法安装缺少的GLIBC出错
EN

Stack Overflow用户
提问于 2020-03-05 16:41:59
回答 1查看 451关注 0票数 1

我是在Centos 6.10上安装nvidia驱动程序的,它包含了一个跳跃损坏的标志,可能已经损坏了yum。每当我运行yum命令时,就会弹出这个错误。

代码语言:javascript
复制
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /lib64/libgcc_s.so.1)

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jun 20 2019, 14:14:55)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

我偶然发现了这个thread ,上面说要安装缺少的GLIBC版本,但我在步骤8的../configure --prefix=/opt/glibc-2.14中遇到了这个错误

代码语言:javascript
复制
checking for forced unwind support... no
configure: error: forced unwind support is required

然后它将我带到了这个forum thread,它指出我应该通过yum安装libunwind。这是我最初的问题,因此让我陷入了僵局。我该怎么办?

EN

回答 1

Stack Overflow用户

发布于 2020-03-06 15:33:39

您需要重新安装GCC,或者更准确地说,需要重新安装libgcc包。某些东西用不兼容的版本覆盖了/lib64/libgcc_s.so.1。您应该能够从镜像下载libgcc RPM包,然后运行:

代码语言:javascript
复制
# rpm --reinstall libgcc-4.4.7-23.el6.x86_64.rpm

这应该仍然有效,因为RPM本身并不依赖于libgcc_s

通常,如果您需要这些核心系统库(glibc、libstdc++、libgcc_s)的更新版本,则需要升级整个操作系统。即使您设法以一致的方式替换它们,您正在运行的东西也不再与原始操作系统非常接近。在这一点上,升级是更谨慎的,因为这将为您提供一个经过许多人测试的一致系统。

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

https://stackoverflow.com/questions/60541221

复制
相关文章

相似问题

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