安装vmware工具:GCC二进制文件的位置?

安装vmware工具:GCC二进制文件的位置?,gcc,virtual-machine,vmware,Gcc,Virtual Machine,Vmware,好的,我正在尝试使用以下说明从命令行向tar安装程序发送所有VMware工具: 我正在lubuntu上安装vmware工具,我使用vmplayer将其作为虚拟机运行。 在第5步之后,当回答屏幕上的配置问题时,它说 the installatinon of vmware tools 9.2.3 build-1031360 for linux completed sucessfully. you can devide to remove this software form your syst

好的,我正在尝试使用以下说明从命令行向tar安装程序发送所有VMware工具:

我正在lubuntu上安装vmware工具,我使用vmplayer将其作为虚拟机运行。 在第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键并接受默认的[是]值,现在它显示

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?
是的

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

找到了答案。我做的是第一个

sudo apt-get install aptitude
sudo aptitude install libglib2.0-0
sudo aptitude install gcc-4.7 make linux-headers-`uname -r` -y
我试过了,但没用,所以我继续做下去

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

完成这两个步骤并重试后,它工作了。

输入:/usr/bin/gcc对我来说很有效。

sudo apt get install build essential
足以让它工作。

为了避免CDROM出现问题: sudo nano/etc/apt/sources.list

找到您的CD-ROM并用#

保存更改:“cntrl+o”,然后退出文件:“cntrl+x”

然后再次尝试安装

首先执行此命令

sudo apt-get install gcc binutils make linux-source
然后再跑

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

这就是你需要做的一切。现在,您的系统具有gcc make和linux内核源代码。

安装适用于LinuxOS的必备VMware工具:

如果您有RHEL/CentOS:

yum install perl gcc make kernel-headers kernel-devel -y
如果您有Ubuntu/Debian:

sudo apt-get -y install linux-headers-server build-essential
  • 构建必要的,也要安装:dpkg-dev,g++,gcc,lib6-dev,libc-dev,make

摘自:

我正试图将此解决方案用于我面临的相同问题。我在虚拟机中安装了Debian,它要求我在CDROM中放入“官方amd64二进制文件”,然后按enter@EternallyCurious看看dao2的回答是否适用于CDROM问题。请用更好的英语解释,并尝试使用正确的格式。在右上角,有帮助部分教你这些。别忘了先运行
sudo apt get update
为我工作。但是我必须编辑我的/etc/apt/sources.list。我的香草安装Debian 8一直要求我插入Jesse安装CD-ROM,但在评论了这一行之后,apt最终进入了互联网并抓取了软件包,对我来说不起作用,即使我指出了gcc目录/usr/bin/gcces,特别是在Ubuntu 18.04下,这是不够的。您还需要安装gcc-8:
sudo apt install gcc-8
sudo apt-get -y install linux-headers-server build-essential