Enter your email address:

Delivered by FeedBurner

Unable to build the vmmon module


StumbleUpon Toolbar

I did a big mistake today, I tried to install vmware on Feisty and even though I have written an article about Installing VMWare server on Feisty I tried to install it without the Vmware patch, and what did I get?

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.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.20-16-generic/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.20-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:80:
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'
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.

Unfortunately on those links there is no real help, so please if your are getting to this post because you have that same error, just remember to download the Patch for vmware

untar it, and the execute the

runme.pl file.

Just remember to install all the necessary software before trying to install VMware, if you need help with this.

Follow this Instructions

Trackback URL for this post:

http://www.go2linux.org/trackback/162
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Thanks for posting about

Thanks for posting about this issue. I have the same problem installing vmware player on fiesty. After trying to install the patch I get this error.

VMware version 4 is installed. This installer supports only version 2 and 3.

Correction .. i'm trying to

Correction .. i'm trying to install on Hardy 8.04

From:

From: http://ubuntuforums.org/showthread.php?t=770716

I had the same problem. If you are using VM Workstation 6, the following will work. Assuming you are familiar with working in terminal mode on the command line, execute the following series of commands:

* unpack VMware-workstation-6.0.3
* go to vmware-distrib/lib/modules/source
* untar the file vmmon.tar (tar xvf vmmon.tar)
* cd vmmon-only/include
* edit the file vcpuset.h
* go to line 74
* change #include “asm/bitops.h” to #include “linux/bitops.h” (Because there are some changes made to the 2.6.24 kernel, it’s not possible to include bitops.h from asm and you will have to include it from the linux directory)
* go back to vmware-distrib/lib/modules/source
* remove the old vmmon.tar file (rm vmmon.tar)
* repack the new vmmon.tar file (tar cvf vmmon.tar vmmon-only)
* remove vmmon-only directory (rm -rf vmmon-only)

Now go to vmware-distrib directory and install vmware as you usualy do. It should work without a glitch.

Works

Works

Another solution is

Another solution is here:
http://cgacimartin.wordpress.com/2007/02/17/error-unable-to-build-the-vm...

Just installing a vmware patch ;)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting