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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've had a problem for a LONG time trying to install VMware 3.2 on Mandrake 10.0. When I run the vmware-config.pl, I get the following kernel / compile errors.
Code:
[root@localhost bin]# ./vmware-config.pl
Making sure VMware Workstation's services are stopped.
Stopping VMware services:
Virtual machine monitor [ OK ]
grep: /proc/ksyms: No such file or directory
grep: /proc/ksyms: No such file or directory
grep: /proc/ksyms: No such file or directory
Trying to find a suitable vmmon module for your running kernel.
None of VMware Workstation's pre-built vmmon modules is suitable for your
running kernel. Do you want this script to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes] yes
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
Argument "gcc (GCC) 3" isn't numeric in numeric ge (>=) at ./vmware-config.pl line 1493, <STDIN> line 1.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.3-4mdksmp/build/include] /lib/modules/2.6.3-4mdk/build/include
Extracting the sources of the vmmon module.
Building the vmmon module.
/bin/sh: -c: line 1: syntax error near unexpected token `('
/bin/sh: -c: line 1: `if echo gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | grep -q '^3\.0'; then echo yes; else echo no; fi'
make: Entering directory `/root/tmp/vmware-config4/vmmon-only'
/bin/sh: -c: line 1: syntax error near unexpected token `('
/bin/sh: -c: line 1: `if echo gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | grep -q '^3\.0'; then echo yes; else echo no; fi'
make[1]: Entering directory `/root/tmp/vmware-config4/vmmon-only'
/bin/sh: -c: line 1: syntax error near unexpected token `('
/bin/sh: -c: line 1: `if echo gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | grep -q '^3\.0'; then echo yes; else echo no; fi'
make[2]: Entering directory `/root/tmp/vmware-config4/vmmon-only/driver-2.6.3-4mdk'
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from ../linux/driver-config.h:38,
from ../linux/driver.c:11:
/usr/include/linux/modversions.h:1:2: #error "======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"
/usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error " instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/modversions.h:34:2: #error "======================================================="
In file included from /lib/modules/2.6.3-4mdk/build/include/linux/irq.h:20,
from /lib/modules/2.6.3-4mdk/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.3-4mdk/build/include/linux/interrupt.h:11,
from ../linux/driver.c:44:
/lib/modules/2.6.3-4mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
make[2]: *** [driver.d] Error 1
make[2]: Leaving directory `/root/tmp/vmware-config4/vmmon-only/driver-2.6.3-4mdk'
make[1]: *** [deps] Error 2
make[1]: Leaving directory `/root/tmp/vmware-config4/vmmon-only'
make: *** [auto-build] Error 2
make: Leaving directory `/root/tmp/vmware-config4/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.
I was able to run VMW without doing any compilations at all! All I did is to setup the environment for the distro that I want to try out, and then install that distro inside VMW, and run it.
I'm not sure what you are trying to do there. Perhaps you should try the newest version of VMW?
Hmmmmmm..... I think youre talking about installing O/S with VMware, I actually installed Vmware 3.2 with .rpm. Then ran the ./vmware-config.pl. Thats where I get he errors. i'd use a newer version, but I only have license for 3.2
I think older versions of VMWare have trouble with hosts with 2.6 kernels in general. I installed VMWare 4.5 on a Slackware machine with 2.6 and everything worked fine. Is there any way you can upgrade your license? If not you may want to downgrade to running a 2.4 kernel on the host machine, if running VMWare is that important to you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.