• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5422
  • Last Modified:

CentOS 5 Kernel Source

I am installing vmware on CentOS 5.

While running vmware-config.pl, the server asks what is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

I did not install the kernel from source so I do not have the source files, how do I download the source files that are needed to put in /usr/src/linux/include?

How do I know which version of the source files I need?
0
gpabst
Asked:
gpabst
2 Solutions
 
sanjoozCommented:
you can find your kernel version by
uname -r

and then you can search your repository by apt-cache search linux-source

find out the package name that relates to your kernel source and install it using
apt-get install linux-source-x.x.xx

Also search and install linux-headers
0
 
arrkerr1024Commented:
RedHat/CentOS 5 don't have apt-get or the kernel-source RPMs.

You can get development info for the kernel from the kernel-devel package "yum install kernel-devel" which is all you need for vmware - you don't need the entire source.

On a base load of CentOS5 you need to install the following to run vmware-config.pl - you may already have these if you did a normal install (I strip my vmware server machines as bare as I can with a custom install), but it won't hurt to run this:
"yum install glibc.x84_64 libX11 libICE libXtst libXext libXt libXrender kernel-devel"
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now