Linux - Yum Install GCC - Missing Kernel-headers

When ever i try to install GCC on my linux (centos) It comes back with missing

glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5- 58.el5_6.4.x86_64 (updates) glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems -->

Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5- 58.el5_6.4.x86_64 (updates)

Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-58.el5_6.4.x86_64 (updates)

Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-58.el5_6.4.x86_64 (updates)

I try yum install kernel-header & kernel-devel but get back:

No package kernel-headers available.

Any suggestions?

share | improve this question
 
Fixed The Issue, Was a conflict inside the yum.conf file. –  Stewart Dick  Jun 29 '11 at 20:36
feedback

2 Answers

active oldest votes
up vote 21 down vote accepted

Your system is probably configured to exclude the kernel packages.

try:

sudo vi /etc/yum.conf

then comment (or remove the 'kernel*' part):

#exclude=kernel*

Then you should be able to do:

sudo yum install kernel-headers

你可能感兴趣的:(Linux - Yum Install GCC - Missing Kernel-headers)