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

          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) 評(píng)論(2)  編輯  收藏 所屬分類: Linux相關(guān)

          評(píng)論:
          # re: 新內(nèi)核安裝VMware,編譯錯(cuò)誤的解決 2008-08-08 13:34 | ysb
          Greate. thanks. It do help !  回復(fù)  更多評(píng)論
            
          # re: 新內(nèi)核安裝VMware,編譯錯(cuò)誤的解決 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: 錯(cuò)誤:隱式聲明函數(shù) ‘sock_valbool_flag’
          make[2]: *** [/tmp/vmware-config3/vmnet-only/bridge.o] 錯(cuò)誤 1
          make[1]: *** [_module_/tmp/vmware-config3/vmnet-only] 錯(cuò)誤 2
          make[1]: Leaving directory `/usr/src/kernels/2.6.25.14-69.fc8-i686'
          make: *** [vmnet.ko] 錯(cuò)誤 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.
          如果這里錯(cuò)了,又要怎么改?  回復(fù)  更多評(píng)論
            
          主站蜘蛛池模板: 开原市| 沁水县| 独山县| 叶城县| 安龙县| 鄱阳县| 玛纳斯县| 都匀市| 海兴县| 星子县| 昌黎县| 鞍山市| 托克逊县| 宝兴县| 汕尾市| 富平县| 东乡县| 石楼县| 靖边县| 湖北省| 武安市| 米易县| 满城县| 铜川市| 伊金霍洛旗| 牙克石市| 泸定县| 新巴尔虎左旗| 工布江达县| 高青县| 冷水江市| 南皮县| 永年县| 宝应县| 寿宁县| 淮滨县| 东安县| 莒南县| 枣阳市| 阳西县| 沭阳县|