阿里云主机系统版本:Centos6.2 x64
错误:
安装开发工具包报错,使用163yum源:
- # yum groupinstall "Development tools" -y
- --> Finished Dependency Resolution
- Error: Package: glibc-headers-2.12-1.80.el6_3.5.x86_64 (updates)
- Requires: kernel-headers
- Error: Package: systemtap-devel-1.7-5.el6.x86_64 (base)
- Requires: kernel-devel
- 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*”
此参数的意思是排除安装或更新kernel开头的软件,而我们安装开发工具包需要依赖kernel相关的软件。
然后继续安装:
# yum clean all
# yum groupinstall "Development tools" -y
本文转自pandazhai 51CTO博客,原文链接:http://blog.51cto.com/dreamway/1045535