VMware Communities
panosru
Contributor
Contributor

GCC not found although gcc installed :/

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...
make
gcc
kernel headers of the running kernel
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 The path "/usr/bin/gcc" is not valid path to the gcc binary. Would you like to change it? [yes] ^C
Execution aborted.
root@dev:/usr/local/vmware-tools-distrib# apt-get install linux-headers-$(uname -r) make gcc
apt-get: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
Reading package lists... Done
Building dependency tree      
Reading state information... Done
gcc 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 gcc
gcc: /usr/bin/gcc /usr/lib/gcc /usr/lib64/gcc
root@dev:/usr/local/vmware-tools-distrib# whereis linux-headers-$(uname -r)
linux-headers-2.6:
root@dev:/usr/local/vmware-tools-distrib# whereis make
make: /usr/bin/make /usr/share/man/man1/make.1.gz
root@dev:/usr/local/vmware-tools-distrib#

Thanks in advance Smiley Happy

0 Kudos
4 Replies
a_p_
Leadership
Leadership

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é

0 Kudos
panosru
Contributor
Contributor

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.3
The path "/usr/bin/gcc-4.3" is not valid path to the gcc binary.
Would you like to change it? [yes] no
Searching 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/include
The path "/lib/modules/2.6.32-5-amd64/build/include" is not a valid path to the
2.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 Smiley Happy

0 Kudos
panosru
Contributor
Contributor

apt-get install libglib2.0-0 is the solution! Smiley Happy

0 Kudos
mry
Contributor
Contributor

Thanks for the solution. Had the same problem, this fixed.

Thanks

0 Kudos