- 论坛徽章:
- 0
|
本帖最后由 VC雄关漫道 于 2011-06-13 23:12 编辑
vmware是正常安装上去的,在官方下的.bundle文件,然后用sudo su命令./*.bundle直接安装,安装过程没有什么问题,一直到安装结束。出现问题是在启动vmware的过程中出现的。
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
下面是出错代码部分(大家有时间帮忙找找是沙漠子问题!谢谢拉!):- 6月 13 22:10:02.683: app-3077920448| Log for VMware Workstation pid=5267 version=7.0.0 build=build-203739 option=Release
- 6月 13 22:10:02.683: app-3077920448| The process is 32-bit.
- 6月 13 22:10:02.683: app-3077920448| Host codepage=UTF-8 encoding=UTF-8
- 6月 13 22:10:02.683: app-3077920448| Logging to /tmp/vmware-root/setup-5267.log
- 6月 13 22:10:02.798: app-3077920448| modconf query interface initialized
- 6月 13 22:10:02.798: app-3077920448| modconf library initialized
- 6月 13 22:10:02.824: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:02.829: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:02.836: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:02.848: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:02.856: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:02.883: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.886: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.889: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.893: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.896: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.911: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.914: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.918: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.921: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.925: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.928: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:02.936: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:02.971: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.974: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.978: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.981: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.984: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:02.988: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:02.995: app-3077920448| Your GCC version: 4.4
- 6月 13 22:10:03.033: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:03.036: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:03.040: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:03.043: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:03.046: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:03.694: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:03.695: app-3077920448| Building module vmmon.
- 6月 13 22:10:03.695: app-3077920448| Extracting the sources of the vmmon module.
- 6月 13 22:10:03.705: app-3077920448| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.32-21-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.3
- 6月 13 22:10:08.783: app-3077920448| Installing module vmmon from /tmp/vmware-root/modules/vmmon.o.
- 6月 13 22:10:08.784: app-3077920448| Registering file: /usr/lib/vmware-installer/1.1/vmware-installer --register-file vmware-player-app regular /lib/modules/2.6.32-21-generic/misc/vmmon.o
- 6月 13 22:10:09.292: app-3077920448| Registering file: /usr/lib/vmware-installer/1.1/vmware-installer --register-file vmware-player-app regular /lib/modules/2.6.32-21-generic/misc/vmmon.ko
- 6月 13 22:10:10.188: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:10.188: app-3077920448| Building module vmnet.
- 6月 13 22:10:10.188: app-3077920448| Extracting the sources of the vmnet module.
- [b]6月 13 22:10:10.197: app-3077920448| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmnet-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.32-21-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.3
- 6月 13 22:10:15.274: app-3077920448| Failed to compile module vmnet![/b]
- 6月 13 22:10:15.279: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:15.280: app-3077920448| Building module vmblock.
- 6月 13 22:10:15.280: app-3077920448| Extracting the sources of the vmblock module.
- 6月 13 22:10:15.289: app-3077920448| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmblock-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.32-21-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.3
- 6月 13 22:10:18.934: app-3077920448| Installing module vmblock from /tmp/vmware-root/modules/vmblock.o.
- 6月 13 22:10:18.934: app-3077920448| Registering file: /usr/lib/vmware-installer/1.1/vmware-installer --register-file vmware-player-app regular /lib/modules/2.6.32-21-generic/misc/vmblock.o
- 6月 13 22:10:19.460: app-3077920448| Registering file: /usr/lib/vmware-installer/1.1/vmware-installer --register-file vmware-player-app regular /lib/modules/2.6.32-21-generic/misc/vmblock.ko
- 6月 13 22:10:20.352: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:20.353: app-3077920448| Building module vmci.
- 6月 13 22:10:20.353: app-3077920448| Extracting the sources of the vmci module.
- 6月 13 22:10:20.361: app-3077920448| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmci-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.32-21-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.3
- 6月 13 22:10:25.556: app-3077920448| Installing module vmci from /tmp/vmware-root/modules/vmci.o.
- 6月 13 22:10:25.557: app-3077920448| Registering file: /usr/lib/vmware-installer/1.1/vmware-installer --register-file vmware-player-app regular /lib/modules/2.6.32-21-generic/misc/vmci.o
- 6月 13 22:10:26.090: app-3077920448| Registering file: /usr/lib/vmware-installer/1.1/vmware-installer --register-file vmware-player-app regular /lib/modules/2.6.32-21-generic/misc/vmci.ko
- 6月 13 22:10:26.983: app-3077920448| Trying to find a suitable PBM set for kernel 2.6.32-21-generic.
- 6月 13 22:10:26.983: app-3077920448| Building module vmci.
- 6月 13 22:10:26.983: app-3077920448| Extracting the sources of the vmci module.
- 6月 13 22:10:26.993: app-3077920448| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmci-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.32-21-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.3
- 6月 13 22:10:27.657: app-3077920448| Building module vsock.
- 6月 13 22:10:27.657: app-3077920448| Extracting the sources of the vsock module.
- 6月 13 22:10:27.667: app-3077920448| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vsock-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.32-21-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.3
- 6月 13 22:10:31.492: app-3077920448| Installing module vsock from /tmp/vmware-root/modules/vsock.o.
- 6月 13 22:10:31.492: app-3077920448| Registering file: /usr/lib/vmware-installer/1.1/vmware-installer --register-file vmware-player-app regular /lib/modules/2.6.32-21-generic/misc/vsock.o
- 6月 13 22:10:31.980: app-3077920448| Registering file: /usr/lib/vmware-installer/1.1/vmware-installer --register-file vmware-player-app regular /lib/modules/2.6.32-21-generic/misc/vsock.ko
复制代码 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6月 13 22:10:10.197: app-3077920448| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmnet-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.32-21-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.3
6月 13 22:10:15.274: app-3077920448| Failed to compile module vmnet!
我看这两行很重要吧,特别是上面那条command。我运行了结果如下:
Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-root/modules/vmnet-only'
make -C /lib/modules/2.6.32-21-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.32-21-generic'
CC [M] /tmp/vmware-root/modules/vmnet-only/vnetUserListener.o
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerEventHandler’:
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:240: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:240: error: (Each undeclared identifier is reported only once
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:240: error: for each function it appears in.)
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerRead’:
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:282: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:282: error: implicit declaration of function ‘signal_pending’
/tmp/vmware-root/modules/vmnet-only/vnetUserListener.c:282: error: implicit declaration of function ‘schedule’
make[2]: *** [/tmp/vmware-root/modules/vmnet-only/vnetUserListener.o] 错误 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmnet-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.32-21-generic'
make: *** [vmnet.ko] 错误 2
make:离开目录“/tmp/vmware-root/modules/vmnet-only”
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
接下来我太兴奋了,一天的探索终于把事情解决了,我是在太兴奋了!是相当的兴奋!
下面说说我的过程:
到了上面可以看出少了两个东西了吧:vnetUserListener.o!!!我以这个为关键字在百度上搜索(由于听说百度只管八卦,技术的要靠谷歌),结果没有采用,谷歌上找到了一个网站,神帖呀真乃神帖!!
¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
http://stulog.com/?post=242(下面摘自这个神帖)
最近刚升级系统到ubuntu 10.04,安装vmware workstation 7的时候竟然在编译vmnet模块的时候失败了。导致vmware无法启动,这是因为2.6.32版本的kernel的缘故。
解决方法如下:
$ cd /tmp
$ tar xf /usr/lib/vmware/modules/source/vmnet.tar
$ cd vmnet-only
$ vi vnetUserListener.c
go to line 37 (after the last include), add this line: #include “compat_sched.h” then save and exit
$ cd /tmp
$ sudo tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
$ vmware
¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
自此问题解决!!欲哭无泪呀!!
感谢大家捧场!太感谢了!!! |
|