在我用的Ubuntu 8.04源裡面沒有vmware player,於是跑到官方網站上面去下載了一個。
但是在安裝程序編譯vmmon modul的時候出現了編譯問題,提示找不到bitops.h所引用的一個頭文件
在中文網上面查了一下沒有找到答案,最後在英文論壇上面找到了解決方法。這裡貼出來希望能對遇到同樣問題的人有幫助
在官方的vmware player包的頭文件裡面包含了錯誤的頭文件,所需要作的是把那個錯誤的頭文件名改過來就行了:
1. cd /usr/lib/vmware/modules/source
2. cp vmmon.tar vmmon.tar.orig
3. sudo tar xvf vmmon.tar
4. cd vmmon-only/include/
5. sudo vi vcpuset.h
6. change line 74 from: #include “asm/bitops.h” to: #include “linux/bitops.h”
7. rm vmmon.tar (return to the folder where you decompressed the tar file)
8. sudo tar cvf vmmon.tar vmmon-only/
9. sudo rm -rf vmmon-only/
10. sudo vmware-config.pl