Drivel, and everything else..

15 Jan, 2009

Problems installing VMware Server 2 on Ubuntu x64 – C Header files

Posted by: Rob In: Uncategorized

When running through the installation of VMware Server 2 on an Ubuntu 8.10 x64 machine, I received the following error:

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

It seems the installer needs to compile a few things (vmmon, vmci, vsock and vmnet modules) and doesn’t have the neccesary C header files to do so, after faffing about I found out that you need to install the linux-headers package for your particular kernel version.

Find out your kernel version by running:

uname -r

Now search the apt-cache for the particular package that you need:

$ apt-cache search linux-headers-<your_kernel_version>

e.g.

$ apt-cache search linux-headers-2.6.27-9-generic

apt-get this package:

$ sudo apt-get install linux-headers-2.6.27-9-generic

It’ll install itself to:

/usr/src/linux-headers-2.6.27-9-generic

So in the VMware installer, enter:

/usr/src/linux-headers-2.6.27-9-generic/include

That’s it, if you’ve installed the correct package and pointed the installer to the correct location, it will be happy and compile a couple of things.

If it complains about “linux/version.h”, then you’ve installed the incorrect package for your kernel version, so go back and double check.

Tags:

3 Responses to "Problems installing VMware Server 2 on Ubuntu x64 – C Header files"

1 | Youssef

January 28th, 2009 at 4:58 pm

Avatar

Hi Rob,
I have done all the steps described, and i got this message :
” The path is a kernel header file directory, but it is not part of kernet source tree”

What i am missing ??
Thanks

2 | Rob

January 28th, 2009 at 6:35 pm

Avatar

Are you sure you’ve installed the correct package for your kernel version?

What package did you install, and what kernel version does ‘uname -r’ report?

3 | RawFlyer

February 10th, 2009 at 3:50 am

Avatar

Thanks!!!

I was stumped until I found this… worked great.

Comment Form

Flickr PhotoStream

    The. An apple a day keeps the doctor a day. This is what they meant, right? Sunset New hobby P1000367 Our new flat

About

My name is Rob, and i'll be scribbling down interesting things, uninteresting things and general thoughts about anything I come across in everyday life. It may just turn into a 'Rant Archive' but hey, everybody needs an outlet. It's better than punching a wall, right?


What I'm Doing...