我是在Centos 6.10上安装nvidia驱动程序的,它包含了一个跳跃损坏的标志,可能已经损坏了yum。每当我运行yum命令时,就会弹出这个错误。
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中遇到了这个错误
checking for forced unwind support... no
configure: error: forced unwind support is required然后它将我带到了这个forum thread,它指出我应该通过yum安装libunwind。这是我最初的问题,因此让我陷入了僵局。我该怎么办?
发布于 2020-03-06 15:33:39
您需要重新安装GCC,或者更准确地说,需要重新安装libgcc包。某些东西用不兼容的版本覆盖了/lib64/libgcc_s.so.1。您应该能够从镜像下载libgcc RPM包,然后运行:
# rpm --reinstall libgcc-4.4.7-23.el6.x86_64.rpm这应该仍然有效,因为RPM本身并不依赖于libgcc_s。
通常,如果您需要这些核心系统库(glibc、libstdc++、libgcc_s)的更新版本,则需要升级整个操作系统。即使您设法以一致的方式替换它们,您正在运行的东西也不再与原始操作系统非常接近。在这一点上,升级是更谨慎的,因为这将为您提供一个经过许多人测试的一致系统。
https://stackoverflow.com/questions/60541221
复制相似问题