LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   how can I install vmware on CentOS 5.0!!! (https://www.linuxquestions.org/questions/red-hat-31/how-can-i-install-vmware-on-centos-5-0-a-577417/)

TheStupid 08-15-2007 08:57 PM

how can I install vmware on CentOS 5.0!!!
 
Downloaded both latest CentOS and vmware server for Linux.

Installation is fine, but when it gets to vmware, it is SUCH A PAIN.

it's vmconfig.pl part

1. it wanted GCC, which I googled it and got it pass.

2. now it says:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

Googled it and installed a whole bunch of kernel stuff, but still couldn't figure out how to go pass this part.

Please help!!!

Lenard 08-16-2007 06:38 AM

Install the kernel-headers and kernel-devel rpms for your running kernel;

yum install kernel-devel kernel-headers

BTW: it is not a good idea to install vmware when using a xen kernel.

TheStupid 08-16-2007 08:05 AM

How do I do this? When I tried, it automatically downloads from the Internet.

Quote:

Originally Posted by Lenard (Post 2860729)
Install the kernel-headers and kernel-devel rpms for your running kernel;

yum install kernel-devel kernel-headers

BTW: it is not a good idea to install vmware when using a xen kernel.


pixellany 08-16-2007 08:16 AM

Quote:

Originally Posted by TheStupid (Post 2860836)
How do I do this? When I tried, it automatically downloads from the Internet.

When you are using the package manager, it goes to the repositories (on the internet) to get the files. So the above is normal.

Once the kernel headers are installed, then you should be able to compile things.

pixellany 08-16-2007 08:18 AM

Quote:

Originally Posted by Lenard (Post 2860729)
BTW: it is not a good idea to install vmware when using a xen kernel.

Why? I thought a "xen kernel" simply was enabled to allow use of xen. Why would that preclude using another VM--VWware, QEMU, etc.?

TheStupid 08-16-2007 08:24 AM

After installing that, I even rebooted, still no go.

Quote:

Originally Posted by pixellany (Post 2860842)
When you are using the package manager, it goes to the repositories (on the internet) to get the files. So the above is normal.

Once the kernel headers are installed, then you should be able to compile things.


pixellany 08-16-2007 08:27 AM

Quote:

Originally Posted by TheStupid (Post 2860854)
After installing that, I even rebooted, still no go.

details? error messages?

Lenard 08-16-2007 08:38 AM

You did not state that you were running a xen kenel, this requires the kernel-xen-devel rpm package to be installed in also. Do not expect vmware to run as fast as normal if your running in the virtual xen environment.

TheStupid 08-16-2007 08:59 AM

Same error messege:

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

# uname -r shows: 2.6.18-8.el5xen

Lenard 08-16-2007 09:38 AM

You need to specify where the files are, have a look at the /usr/src directory please. Hint: they are in someplace else (/usr/src/kernel).

Also see; http://www.centos.org/modules/newbb/...=8090&forum=38

TheStupid 08-16-2007 09:56 AM

I am sorry I have no idea what to do. *cry

Quote:

Originally Posted by Lenard (Post 2860915)
You need to specify where the files are, have a look at the /usr/src directory please. Hint: they are in someplace else (/usr/src/kernel).

Also see; http://www.centos.org/modules/newbb/...=8090&forum=38


Lenard 08-16-2007 10:10 AM

When the question is asked;
Quote:

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
supply the location by typing in the path; /usr/src/kernel<the rest of the path>

Hint: ls -al /lib/modules/`uname -r`/build
That is the backtick character in the above command just above the 'Tab' key on most keyboards.
Example results;
$ ls -al /lib/modules/`uname -r`/build
lrwxrwxrwx 1 root root 23 Aug 16 08:02 /lib/modules/2.6.22.3/build -> /usr/src/linux-2.6.22.3

The part after the '->' portion is what you want to type.

TheStupid 08-16-2007 10:31 AM

Here's what says now:

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.18-8.1.8.el5xen/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.18-8.1.8.el5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.8.el5-xen-i686'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config0/vmmon-only/common/comport.o
CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
make[2]: *** [/tmp/vmware-config0/vmmon-only/common/task.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.8.el5-xen-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

TheStupid 08-16-2007 10:58 AM

I did this and everything worked:

yum install gcc*

The experience is not so happy i would say. On a Windows machine, it's double-click, then done.

Lenard 08-16-2007 11:55 AM

Good for you, your learned something new today glad to hear it.

You might want to install the latest version of vmware-any-any-update, direct link to the file;

http://platan.vc.cvut.cz/ftp/pub/vmw...date113.tar.gz

After download and extraction type: ./rumme.pl


All times are GMT -5. The time now is 07:28 AM.