您好朋友,感謝您關注xiaosilent,我在blogjava的博客已經(jīng)停止更新,請訪問http://kuan.fm了解我的最新情況,謝謝!
          隨筆-82  評論-133  文章-0  trackbacks-0
          ubuntu Hardy上,安裝VMware workstation時:

          Using?2.6.x?kernel?build?system.
          make:?Entering?directory?`
          /tmp/vmware-config2/vmmon-only'
          make?
          -C?/lib/modules/2.6.24.4-64.fc8/build/include/..?SUBDIRS=$PWD?SRCROOT=$PWD/.?modules
          make[
          1]:?Entering?directory?`/usr/src/kernels/2.6.24.4-64.fc8-i686'
          CC?[M]?
          /tmp/vmware-config2/vmmon-only/linux/driver.o
          CC?[M]?
          /tmp/vmware-config2/vmmon-only/linux/hostif.o
          CC?[M]?
          /tmp/vmware-config2/vmmon-only/common/comport.o
          CC?[M]?
          /tmp/vmware-config2/vmmon-only/common/cpuid.o
          In?file?included?from?include
          /asm/bitops.h:2,
          ?????????????????from?
          /tmp/vmware-config2/vmmon-only/./include/vcpuset.h:74,
          ?????????????????from?
          /tmp/vmware-config2/vmmon-only/./include/modulecall.h:23,
          ?????????????????from?
          /tmp/vmware-config2/vmmon-only/common/vmx86.h:18,
          ?????????????????from?
          /tmp/vmware-config2/vmmon-only/common/hostif.h:18,
          ?????????????????from?
          /tmp/vmware-config2/vmmon-only/common/cpuid.c:14:
          include
          /asm/bitops_32.h:9:2:?error:?#error?only?<linux/bitops.h>?can?be?included?directly
          make[
          2]:?***?[/tmp/vmware-config2/vmmon-only/common/cpuid.o]?Error?1
          make[
          1]:?***?[_module_/tmp/vmware-config2/vmmon-only]?Error?2
          make[
          1]:?Leaving?directory?`/usr/src/kernels/2.6.24.4-64.fc8-i686'
          make:?
          ***?[vmmon.ko]?Error?2
          make:?Leaving?directory?`
          /tmp/vmware-config2/vmmon-only'
          Unable?to?build?the?vmmon?module.

          For?more?information?on?how?to?troubleshoot?module
          -related?problems,?please
          visit?our?Web?site?at?
          "http://www.vmware.com/download/modules/modules.html"?and
          "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

          Problem: include/asm/bitops_32.h:9:2: error: #error only <linux/bitops.h> can be included directly, and vmmon-only compile failes

          Solution: change line 74 in vmmon-only source file to read: #include “l(fā)inux/bitops.h”

          Steps:

          1. cd /usr/lib/vmware/modules/source
          2. sudo cp vmmon.tar vmmon.tar.bak
          3. sudo tar xvf vmmon.tar
          4. cd vmmon-only/include/
          5. sudo gedit vcpuset.h
          6. change line 74 from: #include “asm/bitops.h” to: #include “l(fā)inux/bitops.h”
          7. rm vmmon.tar
          8. sudo tar cvf vmmon.tar vmmon-only
          9. sudo rm -rf vmmon-only
          10. sudo vmware-config.pl

          That’s it, the compile will work now and vmware should be usable as normal


          posted on 2008-04-22 10:19 xiaosilent 閱讀(2342) 評論(2)  編輯  收藏 所屬分類: Linux相關

          評論:
          # re: 新內(nèi)核安裝VMware,編譯錯誤的解決 2008-08-08 13:34 | ysb
          Greate. thanks. It do help !  回復  更多評論
            
          # re: 新內(nèi)核安裝VMware,編譯錯誤的解決 2008-09-15 10:26 | TSC
          None of the pre-built vmnet modules for VMware Workstation is suitable for your
          running kernel. Do you want this program to try to build the vmnet module for
          your system (you need to have a C compiler installed on your system)? [yes]

          Extracting the sources of the vmnet module.

          Building the vmnet module.

          Using 2.6.x kernel build system.
          make: Entering directory `/tmp/vmware-config3/vmnet-only'
          make -C /lib/modules/2.6.25.14-69.fc8/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
          make[1]: Entering directory `/usr/src/kernels/2.6.25.14-69.fc8-i686'
          CC [M] /tmp/vmware-config3/vmnet-only/driver.o
          CC [M] /tmp/vmware-config3/vmnet-only/hub.o
          CC [M] /tmp/vmware-config3/vmnet-only/userif.o
          CC [M] /tmp/vmware-config3/vmnet-only/netif.o
          CC [M] /tmp/vmware-config3/vmnet-only/bridge.o
          /tmp/vmware-config3/vmnet-only/bridge.c: In function ‘VNetBridgeUp’:
          /tmp/vmware-config3/vmnet-only/bridge.c:947: 錯誤:隱式聲明函數(shù) ‘sock_valbool_flag’
          make[2]: *** [/tmp/vmware-config3/vmnet-only/bridge.o] 錯誤 1
          make[1]: *** [_module_/tmp/vmware-config3/vmnet-only] 錯誤 2
          make[1]: Leaving directory `/usr/src/kernels/2.6.25.14-69.fc8-i686'
          make: *** [vmnet.ko] 錯誤 2
          make: Leaving directory `/tmp/vmware-config3/vmnet-only'
          Unable to build the vmnet module.

          For more information on how to troubleshoot module-related problems, please
          visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
          "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

          Execution aborted.
          如果這里錯了,又要怎么改?  回復  更多評論
            
          主站蜘蛛池模板: 栾城县| 大足县| 大埔区| 偃师市| 平利县| 田东县| 油尖旺区| 吕梁市| 章丘市| 琼海市| 平武县| 大英县| 鄯善县| 尼勒克县| 鄂托克前旗| 山阴县| 乌鲁木齐市| 黄浦区| 邯郸市| 昭苏县| 昌宁县| 潜江市| 徐州市| 伊通| 东兰县| 正蓝旗| 泸西县| 甘南县| 华阴市| 上饶市| 锦屏县| 宜丰县| 视频| 佳木斯市| 牟定县| 兴仁县| 拜城县| 丰原市| 临朐县| 东乡县| 吴江市|