本文共 1495 字,大约阅读时间需要 4 分钟。
The path "/usr/src/linux/include" is not an existing directory.The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not matchyour running kernel (version 2.6.40-4.fc15.x86_64). Even if the module were tocompile successfully, it would not load into the running kernel.摸索了1个多小时终于找到了解决的方法,具体步骤如下: 1.安装必要的rpm包 yum -y install gcc make kernel-headers kernel-devel 找出正确的kernel headers目录,使用如下命令: [root@vbase include]# echo /usr/src/kernels/`uname -r`/include /usr/src/kernels/2.6.40-4.fc15.x86_64/include 2.修改version.h头文件,该文件位于以下目录 [root@vbase include]# cat /usr/src/kernels/`uname -r`/include/linux/version.h #define LINUX_VERSION_CODE 132648 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 在该头文件中加入 uname -r的输出,如: [root@vbase include]# uname -r 2.6.40-4.fc15.x86_64 #define UTS_RELEASE "2.6.40-4.fc15.x86_64" 3.下载文件,解压该tar包,将其中的文件复制到/usr/lib/vmware/modules/source/并覆盖: tar -xvf modules.tar cp * /usr/lib/vmware/modules/source/ cp: overwrite `/usr/lib/vmware/modules/source/vmblock.tar'? y cp: overwrite `/usr/lib/vmware/modules/source/vmci.tar'? y cp: overwrite `/usr/lib/vmware/modules/source/vmmon.tar'? y cp: overwrite `/usr/lib/vmware/modules/source/vmnet.tar'? y cp: overwrite `/usr/lib/vmware/modules/source/vsock.tar'? y 4.安装Vmware软件,并执行vmware-config.pl
Stopping vmware (via systemctl):
本文转自maclean_007 51CTO博客,原文链接: http://blog.51cto.com/maclean/1278715
转载地址:http://uhjtx.baihongyu.com/