我使用 .bundle 文件在 Ubuntu 12.04 上安装了 VMware,安装过程非常顺利。现在当我尝试打开它时,它提示在运行之前必须编译几个模块。
当我继续操作时,又出现了另一个错误。以下是屏幕截图:
此外,该日志文件的内容如下:
2012-05-31T16:32:11.071+05:30| vthread-3| I120: Log for VMware Workstation pid=25468 version=8.0.0 build=build-471780 option=Release 2012-05-31T16:32:11.071+05:30| vthread-3| I120: The process is 64-bit. 2012-05-31T16:32:11.071+05:30| vthread-3| I120: Host codepage=UTF-8 encoding=UTF-8 2012-05-31T16:32:11.071+05:30| vthread-3| I120: Host is Linux 3.2.0-23-generic Ubuntu 12.04 LTS 2012-05-31T16:32:11.070+05:30| vthread-3| I120: Msg_Reset: 2012-05-31T16:32:11.070+05:30| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": No such file or directory. 2012-05-31T16:32:11.070+05:30| vthread-3| I120:
---------------------------------------- 2012-05-31T16:32:11.070+05:30| vthread-3| I120: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values. 2012-05-31T16:32:11.070+05:30| vthread-3| I120: Msg_Reset: 2012-05-31T16:32:11.070+05:30| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/config": No such file or directory. 2012-05-31T16:32:11.070+05:30| vthread-3| I120:
---------------------------------------- 2012-05-31T16:32:11.070+05:30| vthread-3| I120: PREF Optional preferences file not found at /root/.vmware/config. Using default values. 2012-05-31T16:32:11.070+05:30| vthread-3| I120: Msg_Reset: 2012-05-31T16:32:11.070+05:30| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/preferences": No such file or directory. 2012-05-31T16:32:11.070+05:30| vthread-3| I120:
---------------------------------------- 2012-05-31T16:32:11.070+05:30| vthread-3| I120: PREF Failed to load user preferences. 2012-05-31T16:32:11.071+05:30| vthread-3| W110: Logging to /tmp/vmware-root/modconfig-25468.log 2012-05-31T16:32:11.163+05:30| vthread-3| I120: modconf query interface initialized 2012-05-31T16:32:11.164+05:30| vthread-3| I120: modconf library initialized 2012-05-31T16:32:11.191+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.195+05:30| vthread-3| I120: Validating path /lib/modules/preferred/build/include for kernel release 3.2.0-23-generic 2012-05-31T16:32:11.195+05:30| vthread-3| I120: Failed to find /lib/modules/preferred/build/include/linux/version.h 2012-05-31T16:32:11.195+05:30| vthread-3| I120: Failed version test: /lib/modules/preferred/build/include/linux/version.h not found. 2012-05-31T16:32:11.195+05:30| vthread-3| I120: Validating path /lib/modules/3.2.0-23-generic/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:11.197+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.204+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.226+05:30| vthread-3| I120: Header path /lib/modules/3.2.0-23-generic/build/include for kernel release 3.2.0-23-generic is valid. 2012-05-31T16:32:11.226+05:30| vthread-3| I120: Validating path /lib/modules/3.2.0-23-generic/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:11.229+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.237+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.260+05:30| vthread-3| I120: Header path /lib/modules/3.2.0-23-generic/build/include for kernel release 3.2.0-23-generic is valid. 2012-05-31T16:32:11.286+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel
3.2.0-23-generic. 2012-05-31T16:32:11.290+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.295+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.300+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.305+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.334+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.339+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.344+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.348+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.353+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.356+05:30| vthread-3| I120: Validating path /lib/modules/preferred/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:11.356+05:30| vthread-3| I120: Failed to find /lib/modules/preferred/build/include/linux/version.h 2012-05-31T16:32:11.356+05:30| vthread-3| I120: Failed version test: /lib/modules/preferred/build/include/linux/version.h not found. 2012-05-31T16:32:11.356+05:30| vthread-3| I120: Validating path /lib/modules/3.2.0-23-generic/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:11.359+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.370+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.401+05:30| vthread-3| I120: Header path /lib/modules/3.2.0-23-generic/build/include for kernel release 3.2.0-23-generic is valid. 2012-05-31T16:32:11.436+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel
3.2.0-23-generic. 2012-05-31T16:32:11.441+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.446+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.450+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.452+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.454+05:30| vthread-3| I120: Validating path /lib/modules/preferred/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:11.454+05:30| vthread-3| I120: Failed to find /lib/modules/preferred/build/include/linux/version.h 2012-05-31T16:32:11.454+05:30| vthread-3| I120: Failed version test: /lib/modules/preferred/build/include/linux/version.h not found. 2012-05-31T16:32:11.454+05:30| vthread-3| I120: Validating path /lib/modules/3.2.0-23-generic/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:11.458+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.470+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.507+05:30| vthread-3| I120: Header path /lib/modules/3.2.0-23-generic/build/include for kernel release 3.2.0-23-generic is valid. 2012-05-31T16:32:11.563+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel
3.2.0-23-generic. 2012-05-31T16:32:11.568+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.573+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.578+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.579+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.761+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:11.762+05:30| vthread-3| I120: Validating path /lib/modules/3.2.0-23-generic/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:11.764+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.773+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:11.801+05:30| vthread-3| I120: Header path /lib/modules/3.2.0-23-generic/build/include for kernel release 3.2.0-23-generic is valid. 2012-05-31T16:32:11.802+05:30| vthread-3| I120: Building module vmmon. 2012-05-31T16:32:11.802+05:30| vthread-3| I120: Extracting the sources of the vmmon module. 2012-05-31T16:32:11.815+05:30| vthread-3| I120: Building module with command: /usr/bin/make -j -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/3.2.0-23-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.6 2012-05-31T16:32:14.076+05:30| vthread-3| I120: Failed to compile module vmmon! 2012-05-31T16:32:50.279+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.284+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.289+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.294+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.296+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.299+05:30| vthread-3| I120: Validating path /lib/modules/preferred/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:50.299+05:30| vthread-3| I120: Failed to find /lib/modules/preferred/build/include/linux/version.h 2012-05-31T16:32:50.299+05:30| vthread-3| I120: Failed version test: /lib/modules/preferred/build/include/linux/version.h not found. 2012-05-31T16:32:50.299+05:30| vthread-3| I120: Validating path /lib/modules/3.2.0-23-generic/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:50.303+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:50.318+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:50.350+05:30| vthread-3| I120: Header path /lib/modules/3.2.0-23-generic/build/include for kernel release 3.2.0-23-generic is valid. 2012-05-31T16:32:50.410+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel
3.2.0-23-generic. 2012-05-31T16:32:50.415+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.419+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.423+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.425+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.601+05:30| vthread-3| I120: Trying to find a suitable PBM set for kernel 3.2.0-23-generic. 2012-05-31T16:32:50.601+05:30| vthread-3| I120: Validating path /lib/modules/3.2.0-23-generic/build/include for kernel release
3.2.0-23-generic 2012-05-31T16:32:50.605+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:50.617+05:30| vthread-3| I120: Your GCC version: 4.6 2012-05-31T16:32:50.651+05:30| vthread-3| I120: Header path /lib/modules/3.2.0-23-generic/build/include for kernel release 3.2.0-23-generic is valid. 2012-05-31T16:32:50.651+05:30| vthread-3| I120: Building module vmmon. 2012-05-31T16:32:50.651+05:30| vthread-3| I120: Extracting the sources of the vmmon module. 2012-05-31T16:32:50.666+05:30| vthread-3| I120: Building module with command: /usr/bin/make -j -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/3.2.0-23-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.6 2012-05-31T16:32:51.492+05:30| vthread-3| I120: Failed to compile module vmmon!
答案1
问题在于 VMWare 的内核发布落后于时代。Ubuntu 12.04 (Precise) 使用 3.2 内核。要让 VMWare 模块成功构建,您需要修补(修复)模块的源代码。您可以找到补丁这里
仔细按照说明操作,就不会有问题。