The archives for July 23rd, 2008


Lug 23

Compilation of VMWare-tools on Ubuntu Hardy

figotip.jpgAfter to have installed VMWare serveur on Ubuntu 8,04 it comes to you sure wants to put to us within also VMWare-tools, ovverosia those instruments that us undoubtedly concur a more intense use of our virtual machine.
Here the procedure:

  1. I sudo apt-get install build-essential linux-headers-$ (uname - r);
  2. tar - xzf VMwareTools-1.0.6-91891.tar.gz;
  3. cd vmware-tools-distrib/
  4. I sudo ./vmware-install.pl

However your experience with these instruments would risk to being frustrating if this did not come you in aid post that it explains like obviating to the error:

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmhgfs-only'
make - C /lib/modules/2.6.24-19-server/build/include/. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make [1]: Entering directory `/usr/src/linux-headers-2.6.24-19-server'
CC [M] /tmp/vmware-config0/vmhgfs-only/cpName.o
In rows included from it includes/linux/string.h: 11,
from /tmp/vmware-config0/vmhgfs-only/cpName.h: 18,
from /tmp/vmware-config0/vmhgfs-only/cpName.c: 18:
it includes/linux/types.h: 40: error: conflicting types for `uintptr_t'
/tmp/vmware-config0/vmhgfs-only/vm_basic_types.h: 161: error: previous declaration of `uintptr_t' was to here
make [2]: *** [/tmp/vmware-config0/vmhgfs-only/cpName.o] Error 1
make [1]: *** [_module_/tmp/vmware-config0/vmhgfs-only] Error 2
make [1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-server'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
Unable to build the vmhgfs module.

The problem has been resolved on the forum of vmware simply using open-vmware-tools in order to create the module of the kernel normally and successively installing vmware-tools (sudo ./vmware-install.pl):

  1. I sudo apt-get install libproc-dev libdumbnet-dev libicu-dev;
  2. wget http://mesh.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2008.07.01-102166.tar.gz;
  3. tar - xzf open-vm-tools-*.tar.gz
  4. cd open-vm-tools-*
  5. ./configure - without-x
  6. make
  7. cd modules/linux
  8. for in *; I give to mv $ {i} $ {i} - only; tar - cf $ {} .tar $ {the} - only; done
  9. cd ../../../
  10. mv - f open-vm-tools-*/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/
  11. cd vmware-tools-distrib/
  12. I sudo ./vmware-install.pl

Now it is all OK!