ubuntu版本:4.15.0-118-generic
VMware:14.1.7 , 15.xx,16.xx
本来以为是版本的问题,所以试了很多版本,但是都不行。后来发现是系统少了必要的安装环境。
出错信息
安装了好多次vmware,他一直出错,都没停过。出错信息如下:
Before you run VMware,severval modules must be compiled and loaded into the running kernel.
然后我天真的以为点了install他能自己下载,毕竟都这么大个人了。可谁知道点了install之后,就变味了:
Build environment error! A required application is missing and Modconfig can not continue. xzCheck the log for more details.
解决方案
问题在哪?
- 少了gcc的编译环境
- 少了make的编译环境
- modconfig的配置问题
gcc就不说了,大家系统应该都不缺gcc
安装ubuntu-make编译环境:
首先,我们安装最新版ubuntu-make
# 将ubuntu-make加入apt软件仓库的列表
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
# 升级apt的软件仓库,为了加入刚才的ubuntu-make
sudo apt update
# 安装ubuntu-make
sudo apt install ubuntu-make
然后重新配置Modconfig:
#先安装canberra的库
sudo apt-get install libcanberra*
sudo vmware-modconfig --console --install-all
VMware卸载
如果实在弄不好的话,emmm,但我知道怎么卸载
从学会到学废:
#查看自己产品列表
sudo vmware-installer -l
#卸载
sudo vmware-installer -u vmware-workstation
参考:
https://blog.csdn.net/voov0412/article/details/84781828
https://www.cnblogs.com/yulongzhou/p/6798963.html