Hello I created a Debian 6 64bit VM but when I try to install vmware tools I get the error that gcc is not found, but it is installed I checked more than 100 times :smileysilly: here is the output I get from terminal:
Before you can compile modules, you need to have the following installed...makegcckernel headers of the running kernelSearching for GCC... The path "" is not valid path to the gcc binary. Would you like to change it? [yes] What is the location of the gcc program on your machine? /usr/bin/gcc The path "/usr/bin/gcc" is not valid path to the gcc binary. Would you like to change it? [yes] ^CExecution aborted.root@dev:/usr/local/vmware-tools-distrib# apt-get install linux-headers-$(uname -r) make gccapt-get: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libapt-pkg.so.4.10)Reading package lists... DoneBuilding dependency treeReading state information... Donegcc is already the newest version.linux-headers-2.6.32-5-amd64 is already the newest version.make is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.root@dev:/usr/local/vmware-tools-distrib# whereis gccgcc: /usr/bin/gcc /usr/lib/gcc /usr/lib64/gccroot@dev:/usr/local/vmware-tools-distrib# whereis linux-headers-$(uname -r)linux-headers-2.6:root@dev:/usr/local/vmware-tools-distrib# whereis makemake: /usr/bin/make /usr/share/man/man1/make.1.gzroot@dev:/usr/local/vmware-tools-distrib#
Thanks in advance
After installing GCC, you may need to export the path. The following lines worked for me (maybe there are newer versions available):
apt-get install gcc-4.3 linux-headers-2.6-amd64 make
export CC=/usr/bin/gcc-4.3
André
Hello, thanks for your quick reply, I have those already installed, I tried export CC but still I get the same error, I tried to enter the correct paths manualy but still installation failed.
Searching for GCC...The path "" is not valid path to the gcc binary.Would you like to change it? [yes]What is the location of the gcc program on your machine? /usr/bin/gcc-4.3The path "/usr/bin/gcc-4.3" is not valid path to the gcc binary.Would you like to change it? [yes] noSearching for a valid kernel header path...The path "" is not a valid path to the 2.6.32-5-amd64 kernel headers.Would you like to change it? [yes]Enter the path to the kernel header files for the 2.6.32-5-amd64 kernel? /lib/modules/2.6.32-5-amd64/build/includeThe path "/lib/modules/2.6.32-5-amd64/build/include" is not a valid path to the2.6.32-5-amd64 kernel headers.Would you like to change it? [yes] no
The paths I entered are correct:
root@dev:/lib/modules/2.6.32-5-amd64/build/include# ls asm asm-x86 config linux root@dev:/lib/modules/2.6.32-5-amd64/build/include# ls /usr/bin/ | grep gcc-4.3 gcc-4.3 x86_64-linux-gnu-gcc-4.3
I tried with x86_64-linux-gnu-gcc-4.3 but still I receive:
Creating a new initrd boot image for the kernel. update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64 Checking acpi hot plug done Starting VMware Tools services in the virtual machine: Switching to guest configuration: done Guest operating system daemon: failed Virtual Printing daemon: done Unable to start services for VMware Tools Execution aborted.
Thanks
apt-get install libglib2.0-0 is the solution!
Thanks for the solution. Had the same problem, this fixed.
Thanks