Experimental environment: Ubuntu8.041, download vmwareworkstation5.7forlinuxhttp: // others (vmware-any-update116.tar.gz) http://www.vmware.com/suppo
Lab environment: Ubuntu 8.04
1. Download VMware Workstation 5.5.7 for Linux
Http://www.vmware.com/download/ws/ws5.html
2. Download vmware-any-any-update115.tar.gz(‑vmware-any-any-update116.tar.gz)
Http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html
3rd import the directory vmware-any-any-update115 after vmware-any-any-update115.tar.gz decompression, enter:
Tar xvf vmmon.tar
Rm vmmon.tar
Gedit vmmon-only/include/vcpuset. h
Change # include "asm/bitops. h" to # include "linux/bitops. h"
Tar cvf vmmon.tar vmmon-only
Rm-rf vmmon-only
4. Go to the VMware Workstation 5.5.7 for Linux unzip directory vmware-distrib, enter
Cp ~ Vmware-any-any-update115/vmmon.tar ~ /Vmware-distrib/lib/modules/source/
Cp ~ /Vmware-any-any-update115/vmnet.tar ~ /Vmware-distrib/lib/modules/source/
Sudo./vmware-install.pl
There will be some prompts at the end, and the configuration does not seem to have any impact. If you do not modify vcpuset. h in step 3, the following error occurs:
Building the vmmon module. Using 2.6.x kernel build system.
Make: Entering directory '/tmp/vmware-config1/vmmon-only'
Make-C/lib/modules/2.6.24-16-generic/build/include/... SUBDIRS = $ pwd srcroot = $ PWD/. modules
Make [1]: Entering directory '/usr/src/linux-headers-2.6.24-16-generic'
CC [MB]/tmp/vmware-config1/vmmon-only/linux/driver. o
CC [MB]/tmp/vmware-config1/vmmon-only/linux/hostif. o
CC [MB]/tmp/vmware-config1/vmmon-only/common/comport. o
CC [M]/tmp/vmware-config1/vmmon-only/common/cpuid. o
In a file that contains include/asm/bitops. h: 2,
From/tmp/vmware-config1/vmmon-only/./include/vcpuset. h: 74,
From/tmp/vmware-config1/vmmon-only/./include/modulecall. h: 23,
Vmware-config1/vmmon-only/common/vmx86.h: 18,
From/tmp/vmware-config1/vmmon-only/common/hostif. h: 18,
Vmware-config1/vmmon-only/common/cpuid. c:
Include/asm/bitops_32.h: 9: 2: error: # error only
Can be writable ded directly
Make [2]: *** [/tmp/vmware-config1/vmmon-only/common/cpuid. o] Error 1
Make [1]: *** [_ module _/tmp/vmware-config1/vmmon-only] Error 2
Make [1]: Leaving directory '/usr/src/linux-headers-2.6.24-16-generic'
Make: *** [vmmon. ko] Error 2
Make: Leaving directory '/tmp/vmware-config1/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 step
If you try to run vmware at this time, you may get some error messages and complaints. In this case, we need to set one more thing. (VMware, if you see this, please fix these errors in your official release)
Basically, VMware's errors and complaints are about some cairo libraries and gcc, so you can fix them by pointing to them with a symbolic connection,
Sudo ln-sf/usr/lib/gcc/i486-linux-gnu/4.2.3/libgcc_s.so/usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
Sudo ln-sf/usr/lib/libpng12.so. 0/usr/lib/vmware/lib/libpng12.so. 0/libpng12.so. 0
You can also delete libgcc_s.so.1.