Debian安装VMWare Tools

在 VMWare的Debian安装虚拟工具,碰到了一个问题:

What is the location of the gcc program on your machine?

The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]

我马上想到是没有gcc

于是 apt-get install gcc

结果还是不行,网上找了找,发现其它发行版也可能会碰到这个问题。

原来只安装gcc还是不够的,还需要

linuxsight@linuxsight:~$ uname -r
2.6.32-5-686

linuxsight@linuxsight:~$aptitude install  linux-headers-2.6.32-5-686

选中了曾被取消选择的软件包 linux-kbuild-2.6.32。
正在解压缩 linux-kbuild-2.6.32 (从 .../linux-kbuild-2.6.32_2.6.32-1_i386.deb) ...
选中了曾被取消选择的软件包 linux-headers-2.6.32-5-686。
正在解压缩 linux-headers-2.6.32-5-686 (从 .../linux-headers-2.6.32-5-686_2.6.32-35_i386.deb) ...
正在设置 gcc-4.3-base (4.3.5-4) ...
正在设置 cpp-4.3 (4.3.5-4) ...
正在设置 gcc-4.3 (4.3.5-4) ...
正在设置 linux-headers-2.6.32-5-common (2.6.32-35) ...
正在设置 linux-kbuild-2.6.32 (2.6.32-1) ...
正在设置 linux-headers-2.6.32-5-686 (2.6.32-35) ...

最后再一次

root@linuxsight:/home/linuxsight# cd vmware-tools-distrib/
root@linuxsight:/home/linuxsight/vmware-tools-distrib# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl
root@linuxsight:/home/linuxsight/vmware-tools-distrib# ./vmware-install.pl

 终于成功了

The configuration of VMware Tools 8.4.6 build-385536 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line or by in

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: