您好朋友,感謝您關注xiaosilent,我在blogjava的博客已經停止更新,請訪問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 “linux/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 “linux/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 閱讀(2333) 評論(2)  編輯  收藏 所屬分類: Linux相關

          評論:
          # re: 新內核安裝VMware,編譯錯誤的解決 2008-08-08 13:34 | ysb
          Greate. thanks. It do help !  回復  更多評論
            
          # re: 新內核安裝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: 錯誤:隱式聲明函數 ‘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.
          如果這里錯了,又要怎么改?  回復  更多評論
            
          主站蜘蛛池模板: 漠河县| 红安县| 墨玉县| 济南市| 河北区| 吐鲁番市| 静乐县| 汾西县| 壶关县| 灵台县| 保德县| 万盛区| 长泰县| 武邑县| 南木林县| 福建省| 尤溪县| 彰化市| 茂名市| 阜新市| 安阳县| 凉城县| 获嘉县| 尖扎县| 丹东市| 云安县| 博湖县| 南漳县| 子长县| 和政县| 东兰县| 广安市| 崇礼县| 仙居县| 安陆市| 苍山县| 确山县| 六安市| 东乡县| 敦化市| 泌阳县|