Linux - Yum Install GCC - Missing Kernel-headers

Viewed 94509

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?

6 Answers

I ran into this issue trying to install VMWare Tools. It required gcc and kernel headers -> kernel headers were missing.

So on Redhat 7.4 I had to execute 'yum install kernel-devel'.

If you installed from Cloudlinux ISO, you can't do anything until you activate your server against a license, it will throw above error on a VPS.

I had the same issue. It seems that I need to install the kernel-devel-xx.rpm (from kernel development package) to my custom kernel:

sudo yum install kernel-devel-xx.rpm

Then you should be able to run:

sudo yum install kernel-devel
Related