LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-29-2008, 07:23 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,900

Rep: Reputation: 73
Installing VMware Server on Lenny?


I was wondering if anyone has had any successful experience getting Vmware Server 2.0 installed on Lenny? I am being asked to get this up and running and I know the Ubuntu tutorial works great but I can't find anything on Lenny. When I did a Google search, I only find Etch guides and I thought maybe they're the same but I was unable to find a critical package needed called 'build-essentials' via apt-get.

Does anyone know how I can get VMware Server 2.0 installed on Lenny and or what is required?

Thanks!
 
Old 10-29-2008, 10:02 AM   #2
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Quote:
Originally Posted by Carlwill View Post
but I was unable to find a critical package needed called 'build-essentials' via apt-get.
The package you want is called build-essential, not build-essentials.
 
Old 10-30-2008, 11:01 AM   #3
bano6010
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
I am trying to do the same thing. I need to get VMWare 2 installed on Lenny. I just reinstalled Lenny so I have a fresh start. One of the problems I was running into is the installation would stop after it started asking for header files. I am new to Linux and am not sure what it is referring too. I have seen in other how too forms that you must install 'linux-headers-`uname -r`' and I have yet to get that to run.

Any help would be appreciated.

Thanks!
 
Old 10-30-2008, 01:45 PM   #4
bano6010
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
I found the right command:
linux-headers-$(uname -r)
and got the source files to install. Now when I run the VMWare installer it makes it through that part of the install, but closes out right after that. I know its not complete because it did not ask if I want the VMs to reside in a special directory, which I do, and it never asked for the key.

If anyone has any insight, I would really appreciate it.
 
Old 10-30-2008, 02:10 PM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
you ran vmware-install.pl ?

If you open a shell and run vmware-install.pl in the shell it shouldn't 'close out' and you should be able to see where it stopped at.

how are you running it that you are experiencing this issue ?
 
Old 10-30-2008, 03:04 PM   #6
bano6010
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
I used Midnight Commander to find the vmware-install.pl and just hit enter to run it. I believe I was running it correctly because it did say it was creating directories and files. I also saw the license agreement.

After it asks where the header files are I just pressed enter and it ran something really quick and went back to midnight commander. After, I cant find anything to start VMWare and like I said before, it never asked where I want the VMs to be stored or asked for the key.
 
Old 10-30-2008, 05:00 PM   #7
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
run it from the shell so you can see what is happening when it fails
 
Old 10-31-2008, 07:07 AM   #8
bano6010
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
This is the error I got.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.1.3", while you are trying to use
"/usr/bin/gcc" version "4.3.2". This configuration is not recommended and
VMware Server may crash if you'll continue. Please try to use exactly same
compiler as one used for building your kernel. Do you want to go with compiler
"/usr/bin/gcc" version "4.3.2" anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.26-1-amd64/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.26-1-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-1-amd64'
/tmp/vmware-config0/vmmon-only/Makefile:106: *** Inappropriate build environment: you wanted to use gcc version 4.3.2 while kernel attempts to use gcc version 4.1.3.
/tmp/vmware-config0/vmmon-only/Makefile:108: *** For proper build you'll have to replace gcc-4.1 with symbolic link to /usr/bin/gcc. Stop.
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-1-amd64'
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/go/unsup-linux-products" and
"http://www.vmware.com/go/unsup-linux-tools".

Execution aborted.
 
Old 10-31-2008, 08:21 AM   #9
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
aptitude install gcc-4.1

export CC=/usr/bin/gcc-4.1

./vmware-install.pl


if that doesn't work you can always switch around the symbolic link for gcc to point at gcc-4.1 to complete the compile..

Code:
it-lenny:~# ls -l /usr/bin |grep gcc
-rwxr-xr-x  1 root        root             428 2006-05-07 05:28 c89-gcc
-rwxr-xr-x  1 root        root             451 2006-05-07 05:27 c99-gcc
lrwxrwxrwx  1 root        root               7 2008-10-07 08:19 gcc -> gcc-4.3
-rwxr-xr-x  1 root        root          196932 2008-06-23 22:23 gcc-4.1
-rwxr-xr-x  1 root        root          192220 2008-07-05 16:01 gcc-4.2
-rwxr-xr-x  1 root        root          207648 2008-09-05 18:52 gcc-4.3
-rwxr-xr-x  1 root        root           16268 2008-06-23 22:19 gccbug-4.1
-rwxr-xr-x  1 root        root            2018 2008-07-18 14:02 gccmakedep
lrwxrwxrwx  1 root        root               7 2008-10-07 08:19 i486-linux-gnu-gcc -> gcc-4.3
lrwxrwxrwx  1 root        root               7 2008-07-07 08:27 i486-linux-gnu-gcc-4.1 -> gcc-4.1
lrwxrwxrwx  1 root        root               7 2008-07-22 09:04 i486-linux-gnu-gcc-4.2 -> gcc-4.2
lrwxrwxrwx  1 root        root               7 2008-10-07 08:19 i486-linux-gnu-gcc-4.3 -> gcc-4.3

Last edited by farslayer; 10-31-2008 at 08:25 AM.
 
Old 10-31-2008, 09:04 AM   #10
bano6010
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
Thanks so much. That did the trick. If you don't mind, could you please explain what that did? I would like to get to the point where I am very good at troubleshooting linux fixing problems myself and things like this are nice to understand what the fix did.

Thanks again for your help!
 
Old 11-01-2008, 12:05 AM   #11
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
basically your kernel was compiled using gcc-4.1 and your vmware compile was failing because it wanted to be compiled with the same version of gcc that was used to compile your the kernel. You can have more than one version of gcc installed at a time. the export command just set an environmental variable telling the system to use gcc-4.1 as the default compiler. that is not a permanent switch and can be changed at will. that temp change would also disappear if you were to reboot the system.

You would need this same trick to get the nVidia drivers to compile on your system at this time. (that's why I learned how to do it originally)
 
  


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
Lenny: VMWARE Server Console will not start. cm100 Linux - Software 9 03-29-2009 11:12 AM
problem installing vmware server on Fedora 8.. mia_tech Linux - Newbie 1 03-18-2008 04:16 PM
Installing VMWare on Lenny? carlosinfl Debian 5 07-18-2007 01:56 PM
installing RedHat 4 on VMWare Server pklatt Linux - Software 2 04-06-2007 09:48 AM
Installing VMware server on FC6 lmcilwain Fedora 7 03-05-2007 09:50 AM


All times are GMT -5. The time now is 11:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration