Compilation of VMWare-tools on Ubuntu Hardy
After 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:
- I sudo apt-get install build-essential linux-headers-$ (uname - r);
- tar - xzf VMwareTools-1.0.6-91891.tar.gz;
- cd vmware-tools-distrib/
- 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):
- I sudo apt-get install libproc-dev libdumbnet-dev libicu-dev;
- wget http://mesh.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2008.07.01-102166.tar.gz;
- tar - xzf open-vm-tools-*.tar.gz
- cd open-vm-tools-*
- ./configure - without-x
- make
- cd modules/linux
- for in *; I give to mv $ {i} $ {i} - only; tar - cf $ {} .tar $ {the} - only; done
- cd ../../../
- mv - f open-vm-tools-*/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/
- cd vmware-tools-distrib/
- I sudo ./vmware-install.pl
Now it is all OK!




















