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

如何安装请自行百度,本文只解决./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]
然后一直回车
这是我的解决办法,可能不完全适用。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值