试用了阿里云主机系统版本:Centos6.2 x64
安装gcc报错:
# yum install gcc
Error: Package: glibc-headers-2.12-1.80.el6_3.5.x86_64 (updates)
Requires: kernel-headers
Error: Package: glibc-headers-2.12-1.80.el6_3.5.x86_64 (updates)
Requires: kernel-headers >= 2.2.1
You could try using –skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), ‘yum check’ output follows:
kernel-2.6.32-220.13.1.el6.x86_64 has missing requires of kernel-firmware >= (‘0’, ‘2.6.32’, ‘220.13.1.el6’)
解决方法:
# vim /etc/yum.conf 注释
“#exclude=kernel*”
去除检查安装软的依赖
开始安装
# yum clean all
# yum install gcc -y
发表评论