在Debian上从VMWare Workstation 7.1.1 build-282343安装VMWare Tools时,gcc路径无效


16

我正在尝试在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] 

匿名-a:

Linux debian 2.6.32-5-686 #1 SMP Sat Sep 18 02:14:45 UTC 2010 i686 GNU/Linux

dpkg -l | grep make

ii  make                                 3.81-8                               An utility for Directing compilation.

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

哪里是gcc

gcc: /usr/bin/gcc /usr/lib/gcc

5
确保您还安装了libglib2.0-0。

Answers:


20

运行此命令可解决问题:

sudo aptitude install gcc-4.3 make linux-headers-`uname -r` -y

@WarrenP make是需要安装的软件包之一(请参阅编辑历史记录,修订版4),而不是单独的命令。我已还原您的修改。
Indrek 2013年

5

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

sudo aptitude install libglib2.0-0

在干净的debian安装上有相同的问题。图书馆不见了。
CSchulz 2013年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.