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?
gpabstAsked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.