Since Ubuntu Hardy 8.04 is not supported yet by VMware, and not supported at all by latest VMware 6.0.2 and VMware server we need some tweaking to make it install.
1) download VMware-workstation-6.0.2-59824.i386.tar.gz (from http://www.vmware.com/download/ws/ )
2) unpack it and run ’sudo ./vmware-install.pl’ from the terminal inside the unpacked vmware-distrib directory. Follow the wizard and do not worry if when it runs vmware-config.pl you get the followig error:
/tmp/vmware-config3/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
3) download vmware-any-any-updateNNN.tar.gz from the linked ftp directory and unpack it. This enables you to install VMware on non supported platforms. Nonetheless running ’sudo ./runme.pl’ from inside the unpacked folder will prompt you with another error due to changes in latest 2.6.24 kernel:
include/asm/bitops_32.h:9:2: error: #error only can be included directly
make[2]: *** [/tmp/vmware-config2/vmmon-only/common/cpuid.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory /`/usr/src/linux-headers-2.6.24-4-generic/'
make: *** [vmmon.ko] Error 2
make: Leaving directory /`/tmp/vmware-config2/vmmon-only/'
Unable to build the vmmon module.
4) unpack vmmon.tar ‘tar xf vmmon.tar’,
open vmmon-only/include/vcpuset.h and change the following line #include “asm/bitops.h” to #include “linux/bitops.h”
Open vmmon-only/include/iocontrols_compat.h and change VMMON_VERSION_V6 to 167
Open vmmon-only/include/iocontrols.h and change VMMON_VERSION to 167
Pack a new vmmon.tar ‘tar cf vmmon.tar vmmon-only/’ and then run ’sudo ./runme.pl’ again
For your convenience I have attached the patched patch here: vmware-any-any-update115
5) User Psilocibin reported when running the management console in VMware Server was getting errors about cairo versions.
The following fixed that
sudo cp /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/
sudo cp /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/
该文的原地址是:http://aldeby.org/blog/?p=113