环境:debian/lenny
$ uname -a
Linux tonybox 2.6.24-1-686 #1 SMP Thu Mar 27 17:45:04 UTC 2008 i686 GNU/Linux
$ vmware -v
VMware Workstation 6.0.3 build-80004
$ sudo /usr/bin/vmware-config.pl
配置vmware的时候出现如下错误:
include/asm/bitops_32.h:9:2: error: #error only
can be included directly
解决:
- cd /usr/lib/vmware/modules/source
- cp vmmon.tar vmmon.tar.orig
- sudo tar xvf vmmon.tar
- cd vmmon-only/include/
- sudo vi vcpuset.h
- 修改第 74 行: #include “asm/bitops.h” 为: #include “linux/bitops.h”
- rm vmmon.tar
- sudo tar cvf vmmon.tar vmmon-only/
- sudo rm -rf vmmon-only/
- sudo /usr/bin/vmware-config.pl
阅读(2209) | 评论(2) | 转发(0) |