LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-15-2007, 08:57 PM   #1
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Rep: Reputation: 15
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!!!

Last edited by TheStupid; 08-15-2007 at 10:53 PM.
 
Old 08-16-2007, 06:38 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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.
 
Old 08-16-2007, 08:05 AM   #3
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Original Poster
Rep: Reputation: 15
How do I do this? When I tried, it automatically downloads from the Internet.

Quote:
Originally Posted by Lenard View Post
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.
 
Old 08-16-2007, 08:16 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by TheStupid View Post
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.
 
Old 08-16-2007, 08:18 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Lenard View Post
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.?
 
Old 08-16-2007, 08:24 AM   #6
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Original Poster
Rep: Reputation: 15
After installing that, I even rebooted, still no go.

Quote:
Originally Posted by pixellany View Post
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.
 
Old 08-16-2007, 08:27 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by TheStupid View Post
After installing that, I even rebooted, still no go.
details? error messages?
 
Old 08-16-2007, 08:38 AM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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.
 
Old 08-16-2007, 08:59 AM   #9
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Original Poster
Rep: Reputation: 15
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
 
Old 08-16-2007, 09:38 AM   #10
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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
 
Old 08-16-2007, 09:56 AM   #11
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Original Poster
Rep: Reputation: 15
I am sorry I have no idea what to do. *cry

Quote:
Originally Posted by Lenard View Post
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
 
Old 08-16-2007, 10:10 AM   #12
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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.
 
Old 08-16-2007, 10:31 AM   #13
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Original Poster
Rep: Reputation: 15
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.

Last edited by TheStupid; 08-16-2007 at 10:41 AM.
 
Old 08-16-2007, 10:58 AM   #14
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Original Poster
Rep: Reputation: 15
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.
 
Old 08-16-2007, 11:55 AM   #15
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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

Last edited by Lenard; 08-16-2007 at 11:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.0 and VMWare movie player Linux31 Linux - Software 0 08-11-2007 09:10 AM
CentOS 5.0 Kernel and VMWare Question Linux31 Linux - Software 4 05-23-2007 04:25 PM
LXer: How To Install VMware Server On A CentOS 5.0 Desktop LXer Syndicated Linux News 0 05-20-2007 08:46 AM
Problems installing VMWare Server on CentOS 4.3 64bit shawn_t Linux - Server 3 11-27-2006 05:21 PM
Centos and Vmware bstancil Linux - Software 2 12-21-2005 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration