Trouble building vmmon module for VMware Server with Slackware 10.2
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Trouble building vmmon module for VMware Server with Slackware 10.2
My system is a clean install other than the upgraded 2.6.17.1 kernel and an upgraded gcc 4.1.1 since I read it caused trouble with this.
I've reinstalled Slackware more times than I can count trying to get this bugger to work and each time a new problem crops up.
Any help would really be appreciated.
Code:
root@lugh:~# which gcc
/usr/local/bin/gcc
root@lugh:~# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /usr/src/gcc-4.1.1/configure
Thread model: posix
gcc version 4.1.1
root@lugh:~#
Code:
Trying to find a suitable vmmon module for your running kernel.
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]
Setup is unable to find the "gcc" program on your machine. Please make sure it
is installed. Do you want to specify the location of this program by hand?
[yes]
What is the location of the "gcc" program on your machine?
The answer "" is invalid. It must be the complete name of a binary file.
What is the location of the "gcc" program on your machine? /usr/local/bin/gcc
Using compiler "/usr/local/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.17.1/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-config7/vmmon-only'
make -C /lib/modules/2.6.17.1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 12: gcc: command not found
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/linux-2.6.17.1'
make[2]: gcc: Command not found
/tmp/vmware-config7/vmmon-only/Makefile:89: *** Inappropriate build environment: you wanted to use gcc version 4.1.1 while kernel attempts to use gcc version .
/tmp/vmware-config7/vmmon-only/Makefile:91: *** For proper build you'll have to replace gcc with symbolic link to /usr/local/bin/gcc. Stop.
make[1]: *** [_module_/tmp/vmware-config7/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.1'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config7/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.
root@lugh:/usr/src/vmware-server-distrib#
Sounds like the symbolic link needs changed.
Use find /usr -iname '*gcc*' to find your version 4.1.1
On my slackbox, I only have /usr/bin/i486-slackware-linux-gcc-3.3.6, so its likely in the same location only you've upgraded to 4.1.1
Once you find the gcc-4.1.1 executable
Code:
ln -sf /usr/bin/<gcc-4.1.1> /usr/local/bin/gcc
Last edited by musicman_ace; 07-03-2006 at 05:17 AM.
Trying to find a suitable vmmon module for your running kernel.
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/local/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.17.1/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-config8/vmmon-only'
make -C /lib/modules/2.6.17.1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 12: gcc: command not found
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/linux-2.6.17.1'
make[2]: gcc: Command not found
/tmp/vmware-config8/vmmon-only/Makefile:89: *** Inappropriate build environment: you wanted to use gcc version 4.1.1 while kernel attempts to use gcc version .
/tmp/vmware-config8/vmmon-only/Makefile:91: *** For proper build you'll have to replace gcc with symbolic link to /usr/local/bin/gcc. Stop.
make[1]: *** [_module_/tmp/vmware-config8/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.1'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config8/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.
root@lugh:/usr/src/vmware-server-distrib#
Looks to me like /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1 would be the gcc-4.1.1 executable. I can't verify that, so you should navigate to that directory and check the file permissions to verify that that file is the gcc executable. If it is, then create a symbolic link as suggested in vmware's error output
--EDIT--
Just for grins, gcc-config -l and verify that you have 4.1.1 as your current compiler.
Last edited by musicman_ace; 07-03-2006 at 06:13 AM.
However, I usually mess it up by putting the target and destination in the wrong order. I believe the above should do it, if it doesn't then reverse the two paths
As for checking file permissions, ls -l will give you something like:
drwxrw-r-x
D is directory, if its not a directory then the d would be a -
the others are Read, Write, and eXecute.
That shows that the /usr/loca/bin/gcc is already a symbolic link to the 4.1.1 version of gcc. Just for fun, remove /usr/local/bin/gcc and then recreate the symbolic link.
If that doesn't work, then I'm thinking that it wants the symbolic link to be the older version of gcc.
root@lugh:/usr/src/php-5.1.4# rm /usr/local/bin/gcc
root@lugh:/usr/src/php-5.1.4# ln -s /usr/local/bin/i686-pc-linux-gnu-gcc-4.1.1 /usr/local/bin/gcc
root@lugh:/usr/src/php-5.1.4# /usr/bin/vm
vm-support vmnet-netifup vmware-authtrusted vmware-ping
vmake vmnet-sniffer vmware-cmd vmware-uninstall.pl
vmnet-bridge vmrun vmware-config.pl vmware-vdiskmanager
vmnet-dhcpd vmstat vmware-loop
vmnet-natd vmware vmware-mount.pl
root@lugh:/usr/src/php-5.1.4# /usr/bin/vmware-config.pl
Making sure services for VMware Server are stopped.
Stopping VMware services:
Virtual machine monitor done
Configuring fallback GTK+ 2.4 libraries.
In which directory do you want to install the mime type icons?
[/usr/share/icons]
What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]
In which directory do you want to install the application's icon?
[/usr/share/pixmaps]
Trying to find a suitable vmmon module for your running kernel.
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/local/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.17.1/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-config10/vmmon-only'
make -C /lib/modules/2.6.17.1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/linux-2.6.17.1/scripts/gcc-version.sh: line 12: gcc: command not found
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/linux-2.6.17.1'
make[2]: gcc: Command not found
/tmp/vmware-config10/vmmon-only/Makefile:89: *** Inappropriate build environment: you wanted to use gcc version 4.1.1 while kernel attempts to use gcc version .
/tmp/vmware-config10/vmmon-only/Makefile:91: *** For proper build you'll have to replace gcc with symbolic link to /usr/local/bin/gcc. Stop.
make[1]: *** [_module_/tmp/vmware-config10/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.1'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config10/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.
root@lugh:/usr/src/php-5.1.4#
So I linked it to the old version and got
Code:
Using compiler "/usr/local/bin/gcc". Use environment variable CC to override.
Your kernel was built with "gcc" version "4.1.1", while you are trying to use
"/usr/local/bin/gcc" version "3.3.6". This configuration is not supported and
VMware Server cannot work in such configuration. Please either recompile your
kernel with "/usr/local/bin/gcc" version "3.3.6", or restart
/usr/bin/vmware-config.pl with CC environment variable pointing to the "gcc"
version "4.1.1".
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.
root@lugh:/usr/src/php-5.1.4#
Could you post your PATH output. After re-reading, the gcc getting executed needs to be re-linked to /usr/local/bin/gcc, which means that there is probably another link to this link. We'll need to check each directory in your PATH in sequence until we find it and then verify that it links to /usr/local/bin/gcc.
I'm really sorry but had to go away for a little over a week and barely had enough time to tell my friends.
Anyways I tried typing PATH and path into the shell but got nothing. Googled Path but just got howtos on setting the path and adding stuff but not reading it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.