gcc安装报错解决方法

本文系转载!

版权声明:本文为博主【我头像是啥】原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

感谢!转自https://blog.csdn.net/weixin_43144634/article/details/82804633

yum install -y gcc报错的解决方法如下

错误:软件包:glibc-2.17-196.el7.i686 (yum.repo)

          需要:glibc-common = 2.17-196.el7

          已安装: glibc-common-2.17-222.el7.x86_64 (@base)

              glibc-common = 2.17-222.el7

          可用: glibc-common-2.17-196.el7.x86_64 (yum.repo)

              glibc-common = 2.17-196.el7

错误:软件包:gcc-4.8.5-16.el7.x86_64 (yum.repo)

          需要:cpp = 4.8.5-16.el7

          已安装: cpp-4.8.5-28.el7_5.1.x86_64 (@updates)

              cpp = 4.8.2-16.el7_5

              cpp = 4.8.5-28.el7_5.1

          可用: cpp-4.8.5-16.el7.x86_64 (yum.repo)

              cpp = 4.8.5-16.el7

              cpp = 4.8.2-16.

输入命令:yum distro-sync

即可解决问题。 
 

你可能感兴趣的:(gcc,CentOS)