LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   I cannot install VMware workstation on CentOS. (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/i-cannot-install-vmware-workstation-on-centos-820682/)

corone 07-19-2010 08:55 AM

I cannot install VMware workstation on CentOS.
 
Hello,

I installed VMware-workstation-5.5.9-126128.i386.rpm on the linux desktop.
The linux kernel version is 2.6.18-164.15.1.el5 (CentOS 5)

When I excuted /usr/bin/vmware-config.pl, the following problem occured.

Code:

# /usr/bin/vmware-config.pl
...
The path "/usr/src/linux/include" is a kernel header file directory, but it
does not contain the file "linux/version.h" as expected.  This can happen if
the kernel has never been built, or if you have invoked the "make mrproper"
command in your kernel directory.  In any case, you may want to rebuild your
kernel.
 
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

So I installed kernel-headers-2.6.18-164.15.1.el5.i386.rpm and inputed /usr/include.

But it doesn't works.

Please, help me.

jiml8 07-19-2010 01:01 PM

Where did that rpm get installed? You say you inputed /usr/include but the default location that VMware was searching is /usr/src/linux/include.

Have you done a find to locate all files named version.h?

Workstation 5.5 is at least three years out of date, by the way.

Brains 07-26-2010 03:28 PM

Here is where vmware 6 looks for headers with 2.6.20 kernel:
Quote:

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.20.20070509/build/include]
In your case, it will probably be in same except the kernel part will be different. When it asks that question you posted, it suggests "[/usr/src/linux/include]", you'll notice the question mark before this, what it's doing is taking a guess based on where they would have been back in it's day. Today's kernels don't have the /usr/src/linux directory anymore. So when it asks that question next time you try compiling, input the correct path. Seeing as you are working with an older kernel, they may be at /lib/modules/2.6.18-164.15.1/build/include or /usr/src/linux-headers-2.6.18-164.15.1/include. Both are the same as one is just a symlink to the other containing the actual header files. The 2.6.18-164.15.1 directory may also contain the .el5 in it's name, check to see what is the exact full name of directories as they appear when navigating them.


All times are GMT -5. The time now is 06:13 PM.