您的位置:首页 > 其它

ubuntu17.10在安装VMware tools是一系列问题

2017-12-26 14:13 344 查看
如何安装请自行百度,本文只解决./vmware-install.pl后遇到的问题

首先会提示你没有ifconfig

解决方法:

sudo apt-get install net-tools

然后会提示

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]

解决办法:

sudo apt-get install gcc

我顺便把g++也安装了

sudo apt-get install g++

这样已经安装好gcc

各种问题接踵而至:

What is the location of the directory of C header files that match your running kernel?

解决办法

cd /usr/src 选择你的linux版本

cd linux-headers-4.3.0-21-generic

cp -p generated/utsrelease.h linux/utsrelease.h

cp -p generated/autoconf .h linux/autoconf .h

这样基本配置完毕

再次在你的安装目录运行 ./vmware-install.pl

遇到如下问题按下面操作

What is the location of the gcc program on your machine? /usr/bin/gcc

The path “/usr/bin/gcc” appears to be a valid path to the gcc binary.

Would you like to change it? [no]

Searching for a valid kernel header path…

The path “” is not valid.

Would you like to change it? [yes]

What is the location of the directory of C header files that match your running

kernel? /lib/modules/4.13.0.21-generic/build/include

这里是你的版本哈

The path “/lib/modules/4.13.0.21-generic/build/include” appears to be a valid

path to the kernel headers of the running kernel.

Would you like to change it? [no]

然后一直回车

这是我的解决办法,可能不完全适用。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: