Gcc 无法在Debian上安装VMWare工具 主机操作系统:Mac OS X 10.7.3 VMWare Fusion版本4.1.1(536016) 来宾操作系统:Debian GNU/Linux压缩,内核2.6.32-5-amd64

Gcc 无法在Debian上安装VMWare工具 主机操作系统:Mac OS X 10.7.3 VMWare Fusion版本4.1.1(536016) 来宾操作系统:Debian GNU/Linux压缩,内核2.6.32-5-amd64,gcc,debian,vmware-tools,Gcc,Debian,Vmware Tools,尝试编译模块时,安装过程受阻: ..... 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 "/usr/bin/gcc" is not valid path to the gcc binary. Would you like to ch

尝试编译模块时,安装过程受阻:

.....
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 "/usr/bin/gcc" is not valid path to the gcc binary.
Would you like to change it? [yes] 
gcc
已安装:

# dpkg -l | grep gcc
ii  gcc                                 4:4.6.2-4                    GNU C compiler
ii  gcc-4.3-base                        4.3.5-4                      The GNU Compiler Collection (base package)
ii  gcc-4.4-base                        4.4.7-1                      GCC, the GNU Compiler Collection (base package)
ii  gcc-4.6                             4.6.3-1                      GNU C compiler
ii  gcc-4.6-base                        4.6.3-1                      GCC, the GNU Compiler Collection (base package)
ii  libgcc1                             1:4.6.3-1                    GCC support library
VMWare Tools installer试图查找二进制文件的位置:

# stat /usr/bin/gcc
  File: `/usr/bin/gcc' -> `gcc-4.6'
  Size: 7           Blocks: 0          IO Block: 4096   symbolic link
Device: 801h/2049d  Inode: 1279246     Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
谷歌搜索这个问题指出,问题可能是gcc版本——需要4.3版。 有趣的是,当我尝试安装内核头(VMWare Tools安装程序也需要)时,它会导致相同的问题:

# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-2.6.32-5-amd64 : Depends: gcc-4.3 but it is not going to be installed
E: Broken packages

有没有办法解决这个问题?谢谢

在超级用户shell中或使用sudo安装libglib2.0-0


以下软件包有未满足的依赖项:linux-headers-2.6.32-5-amd64:Dependes:gcc-4.3,但它不会被安装E:坏包-glib与gcc没有任何关系-在这方面。