gcc - 无法在 Debian Squeeze 客户机上安装 VMWare Tools

标签 gcc debian vmware-tools

  • 主机操作系统:Mac OS X 10.7.3
  • VMWare Fusion 版本 4.1.1 (536016)
  • 客户操作系统:Debian GNU/Linux Squeeze,内核 2.6.32-5-amd64

尝试编译模块时安装过程陷入困境:

.....
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 安装程序尝试查找的位置:

# 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

有什么想法可以解决这个问题吗?谢谢!

最佳答案

apt-get install libglib2.0-0 在 super 用户 shell 中或使用 sudo

http://communities.vmware.com/message/1883496?tstart=5

关于gcc - 无法在 Debian Squeeze 客户机上安装 VMWare Tools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9921319/

相关文章:

c - 在其他翻译单元中强制内联功能

c - GCC/clang 编译错误,函数作用域静态指针指向未命名数组

gcc - 内部编译器错误 : Bus error with LLVM GCC 4. 2 编译器

Linux Debian - 未满足的依赖项

ubuntu - 在 Ubuntu 13.04 上升级到 VMPlayer 6.0.1 后,VMWare 工具配置失败

python - 使用 Python 的 CFFI 并排除系统头文件

ffmpeg - 将 FLV 音频流与 WAV 背景音轨混合,并使用 SoX 和 FFmpeg 转换为 MP3

ssh - Jenkins 不会使用 SSH key

vmware - 在 Linux Mint 13 上安装 VMware Tools 时出现问题

ubuntu - 有更新时如何更新VM内的vmware工具?