19

好的,所以我尝试使用以下说明从命令行使用 tar 安装程序安装 VMware 工具:http: //www.vmware.com/support/ws5/doc/ws_newguest_tools_linux.html#wp1118025

我正在使用 vmplayer 作为虚拟机运行的 lubuntu 上安装 vmware 工具。第 5 步之后,在回答屏幕上的配置问题时,它说

the installatinon of vmware tools 9.2.3 build-1031360 for linux completed sucessfully.  you can devide to 
remove this software form your system at any time by invoking the following command:
"/usr/bin/vmware-uninstall-tools.pl".
before running vmware tools for the first time, you need to configure it by invoking  the following command:
"usr/bin/vmware-config-tools.pl". Do you want this program to invoke the command for  you now?
[yes]

我按 Enter 并接受了默认的 [yes] 值,现在它说

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 "" is not valid path to the gcc binary. 
Would you like to change it? [yes]

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

我做了

locate gcc

并发现有一个名为 /usr/lib/gcc 的文件夹,所以我尝试将其作为位置,但它说路径“/usr/lib/gcc”不是 gcc 库的有效路径。如何找出我机器上 gcc 二进制文件的位置?

4

6 回答 6

29

sudo apt-get install build-essential is enough to get it working.

于 2014-03-19T12:43:38.330 回答
13

Install prerequisites VMware Tools for LinuxOS:

If you have RHEL/CentOS:

yum install perl gcc make kernel-headers kernel-devel -y

If you have Ubuntu/Debian:

sudo apt-get -y install linux-headers-server build-essential
  • build-essential, also install: dpkg-dev, g++, gcc, lib6-dev, libc-dev, make

Extracted from: http://www.sysadmit.com/2016/01/vmware-tools-linux-instalar-requisitos.html

于 2016-01-06T18:08:14.030 回答
6

Entering: /usr/bin/gcc worked for me.

于 2013-11-26T18:52:29.157 回答
5

找到了答案。我所做的是首先

sudo apt-get install aptitude
sudo aptitude install libglib2.0-0
sudo aptitude install gcc-4.7 make linux-headers-`uname -r` -y

and tried it but it didn't work so I continued and did

sudo apt-get install build-essential
sudo apt-get install gcc-4.7 linux-headers-`uname -r`

after doing these two steps and trying again, it worked.

于 2013-09-14T19:10:06.987 回答
0

to avoid the problem with CDROM: sudo nano /etc/apt/sources.list

find your cdrom and comment it with #

save the changes: "cntrl + o", than exit the file: "cntrl + x"

and try to install again

于 2014-03-30T10:54:43.100 回答
-1

First execute this

sudo apt-get install gcc binutils make linux-source

Then run again

/usr/bin/vmware-config-tools.pl

This is all you need to do. Now your system has the gcc make and the linux kernel sources.

于 2015-05-24T00:42:20.457 回答