Linux - Yum Install GCC - Missing Kernel-headers

3004 ワード

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?
linux  gcc  centos5  yum
share
| improve this question
edited  Jun 30 '11 at 12:25
Bill the Lizard

102k
74
270
516
asked 
Jun 28 '11 at 22:16
Stewart Dick
21
1
5
 
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