星期五, 3月 13, 2009

Install VMware workstation v6.0.0.45731 on Ubuntu 8.0.4

After installing VMware workstation on Ubuntu 8.0.4, a compiler error which says "conflicting types for ‘poll_initwait’" will raise. The same error will also generate when you run vmware-config.pl to configure the VMware. We can fix the problem in the following steps:

  1. Download the patch from Petr Vandrovec at http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz.
  2. tar xfz vmware-any-any-update115.tar.gz
  3. Change the working directory into vmware-any-any-update115
  4. sudo ./runme.pl

Then, you will get another compiler error which says "only <linux/bitops.h> can be included directly". Fix the probelm in the following steps:

  1. cd /usr/lib/vmware/modules/source
  2. cp vmmon.tar vmmon.tar.orig
  3. sudo tar xvf vmmon.tar
  4. cd vmmon-only/include/
  5. sudo vi vcpuset.h
  6. change line 74 from: #include "asm/bitops.h" to #include "linux/bitops.h"
  7. rm vmmon.tar
  8. sudo tar cvf vmmon.tar vmmon-only/
  9. sudo rm -rf vmmon-only/
  10. sudo vmware-config.pl

沒有留言: