查看日志文件,
cat /tmp/vmware-xiuyuan/vmware-modconfig-9996.log | more
在日志文件中有这么几行:
Setting header path for 3.7.2-204.fc18.x86_64 to "/lib/modules/3.7.2-204.fc18.x86_64/build/include".
Validating path "/lib/modules/3.7.2-204.fc18.x86_64/build/include" for kernel release "3.7.2-204.fc18.x86_64".
Failed to find /lib/modules/3.7.2-204.fc18.x86_64/build/include/linux/version.h
Failed version test: /lib/modules/3.7.2-204.fc18.x86_64/build/include/linux/version.h not found.
从中不难看出,是因为缺少version.h文件。
所以只需要
拷贝/usr/include/linux/version.h到/lib/modules/3.7.2-204.fc18.x86_64/build/include/linux/目录
sudo cp /usr/include/linux/version.h /lib/modules/3.7.2-204.fc18.x86_64/build/include/linux/
或
sudo ln -s /usr/include/linux/version.h /lib/modules/3.7.2-204.fc18.x86_64/build/include/linux/
有可能找不到 /lib/modules/3.7.2-204.fc18.x86_64/build/include/linux/ 这个目录,此时可以安装内核头
yum install kernel kernel-headers kernel-devel
然后再执行上面的过程