【问题标题】:GLIBC 2.14 installation error: forced unwind support is required - RHEL 7.5GLIBC 2.14 安装错误:需要强制展开支持 - RHEL 7.5
【发布时间】:2021-08-30 19:47:00
【问题描述】:

我已将我的 RHEL 操作系统从 6.7 升级到 7.5。升级后,我在尝试运行yum 时发现了一些问题。以下是详细信息。

# yum repolist

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, Aug  9 2016, 06:11:56)                                                                                                                                     
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]                                                                                                                                       

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

收到此错误后,我刚刚安装了 python2.7 和 GLIBC 2.14。但是当我尝试从我当前的 GLIBC 版本 2.12 安装 GLIBC 2.14 时,它会抛出一些错误。以下是我用来安装 GLIBC 2.14 的步骤:

  1. tar xvfz glibc-2.14.tar.gz
  2. cd glibc-2.14
  3. mkdir build
  4. cd build
  5. ../configure --prefix=/opt/glibc-2.14
  6. make
  7. sudo make install
  8. export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH

在第 5 步中,我遇到了错误。详情如下:

# ../configure --prefix=/opt/glibc-2.14

checking for forced unwind support... no                                                                                                                                
configure: error: forced unwind support is required

我不知道这个错误“需要展开支持”。请告诉我如何在 Redhat 7.5 中设置/安装强制展开。

【问题讨论】:

  • 老兄,这正是这里发生的事情。你想出解决方案了吗?

标签: python linux amazon-ec2 redhat


【解决方案1】:

配置时添加libc_cv_forced_unwind=yes

../configure --prefix=/opt/glibc-2.14 libc_cv_forced_unwind=yes

make

【讨论】:

    猜你喜欢
    • 2016-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-26
    • 2017-09-25
    • 2021-10-31
    • 1970-01-01
    • 2014-12-03
    相关资源
    最近更新 更多