yum安装gcc时降级安装包的问题

安装gcc gcc-c++ make等编译包,提示glibc错误依赖

--> Finished Dependency Resolution
Error: Package: glibc-headers-2.17-317.el7.x86_64 (centos7)
           Requires: glibc = 2.17-317.el7
           Installed: glibc-2.17-326.el7_9.x86_64 (@anaconda)
               glibc = 2.17-326.el7_9
           Available: glibc-2.17-317.el7.x86_64 (centos7)
               glibc = 2.17-317.el7
Error: Package: glibc-devel-2.17-317.el7.x86_64 (centos7)
           Requires: glibc = 2.17-317.el7
           Installed: glibc-2.17-326.el7_9.x86_64 (@anaconda)
               glibc = 2.17-326.el7_9
           Available: glibc-2.17-317.el7.x86_64 (centos7)
               glibc = 2.17-317.el7
 You could try using --skip-broken to work around the problem

分析是:
文字中已经很清晰的说明了需要的版本和已经安装的版本,说明版本高了,需要手动降级

//降级安装
yum downgrade -y glibc glibc-common

//再次执行,完美执行成功
yum install -y make autoconfig gcc gcc-c++

 

posted @ 2023-05-19 16:07  海_纳百川  阅读(1030)  评论(0编辑  收藏  举报
本站总访问量