ubuntu15.04在安装完vmware11后打开提示 VMware Kernel Module Updater
说什么内核需要重编译,但点击确定后又失败了。
查看了网上,说linux内核版本升级,导致编译时编译不过。
进入安装目录
cd /usr/lib/vmware/modules/source
解压
tar -xf vmnet.tar
然后修改filter.c里的两行代码,但我的filter.c为空
然后我进vmnet-only编译了一下,报如下错误:
Using kernel build system.
make -C /lib/modules/3.19.0-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-3.19.0-15-generic'
CC [M] /usr/lib/vmware/modules/source/vmnet-only/driver.o
/usr/lib/vmware/modules/source/vmnet-only/driver.c: In function ‘VNetFileOpUnlockedIoctl’:
/usr/lib/vmware/modules/source/vmnet-only/driver.c:1194:20: error: ‘struct file’ has no member named ‘f_dentry’
if (filp && filp->f_dentry) {
^
/usr/lib/vmware/modules/source/vmnet-only/driver.c:1195:19: error: ‘struct file’ has no member named ‘f_dentry’
inode = filp->f_dentry->d_inode;
^
scripts/Makefile.build:257: recipe for target '/usr/lib/vmware/modules/source/vmnet-only/driver.o' failed
make[2]: *** [/usr/lib/vmware/modules/source/vmnet-only/driver.o] Error 1
Makefile:1394: recipe for target '_module_/usr/lib/vmware/modules/source/vmnet-only' failed
make[1]: *** [_module_/usr/lib/vmware/modules/source/vmnet-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-15-generic'
Makefile:120: recipe for target 'vmnet.ko' failed
make: *** [vmnet.ko] Error 2
网上又收了下,终于找到解决方案了,并上传了改过压缩后的vmnet.tar。我下载拷贝到这个目录下果然能编译通过。再次运行vmware就很顺畅了。
这是我的网盘链接 http://pan.baidu.com/s/1slkSYcd
下载拷贝到上面的安装目录就行了。