从 Debian 上的 VMWare Workstation 7.1.1 build-282343 安装 VMWare 工具时,gcc 路径无效

Миш*_*лев 16 vmware debian debian-squeeze

我正在尝试在 Debian Squeeze 上安装 VMWare 工具。

我的错误:

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] 
Run Code Online (Sandbox Code Playgroud)

用户名 -a:

Linux debian 2.6.32-5-686 #1 SMP Sat Sep 18 02:14:45 UTC 2010 i686 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

dpkg -l | 制作

ii  make                                 3.81-8                               An utility for Directing compilation.
Run Code Online (Sandbox Code Playgroud)

dpkg -l | grep gcc

ii  gcc                                  4:4.4.4-2                            The GNU C compiler
ii  gcc-4.4                              4.4.4-8                              The GNU C compiler
ii  gcc-4.4-base                         4.4.4-8                              The GNU Compiler Collection (base package)
ii  libgcc1                              1:4.4.4-8                            GCC support library
Run Code Online (Sandbox Code Playgroud)

哪里是gcc

gcc: /usr/bin/gcc /usr/lib/gcc
Run Code Online (Sandbox Code Playgroud)

Миш*_*лев 20

运行此命令修复了问题:

sudo aptitude install gcc-4.3 make linux-headers-`uname -r` -y
Run Code Online (Sandbox Code Playgroud)


qwe*_*guy 5

就像纪尧姆在 OP 的评论中所说:

sudo aptitude install libglib2.0-0
Run Code Online (Sandbox Code Playgroud)