20内核下编译出错的解决办法,04下成功安装vmw

2019-10-11 01:16 来源:未知

Execution aborted.

将21行:

接下去编写翻译了VMMon模块

Ubuntu 12.04安装VMware Workstation 8问题

骨子里方法本人曾经教过了:

但是在Ubuntu 有人问:

www.bkjia.com @ubuntu:~$ sudo sh ./patch-modules_3.2.0.sh

./patch-modules_3.2.0.sh: 27: [: workstation8.0.2: unexpected operator
./patch-modules_3.2.0.sh: 28: [: workstation8.0.2: unexpected operator
Sorry, this script is only for VMWare WorkStation 8.0.2 or VMWare Player 4.0.2. Exiting

留意要那样写:

www.bkjia.com @ubuntu:~$ sudo bash ./patch-modules_3.2.0.sh
./patch-modules_3.2.0.sh: 行 42: patch: 未找到命令

以此时候:要设置path:

www.bkjia.com @ubuntu:~$ sudo apt-get install patch
正在读取软件包列表... 完结
正在剖判软件包的依附关系树      
正在读取状态消息... 实现      
提出安装的软件包:
  diffutils-doc
下列【新】软件包将被设置:
  patch
进级了 0 个软件包,新装置了 1 个软件包,要卸载 0 个软件包,有 1伍二十一个软件包未被进级。
内需下载 80.2 kB 的软件包。
解压缩后会消耗掉 223 kB 的额外层空间间。
获取:1 precise/main patch amd64 2.6.1-3 [80.2 kB]
下载 80.2 kB,耗时 2秒 (39.4 kB/s)
Selecting previously unselected package patch.
(正在读取数据库 ... 系统当下共设置有 141404 个文本和目录。)
正在解压缩 patch (从 .../patch_2.6.1-3_amd64.deb) ...
正在管理用于 man-db 的触发器...
正在设置 patch (2.6.1-3) ...
www.bkjia.com @ubuntu:~$ sudo bash ./patch-modules_3.2.0.sh
patching file vmnet-only/filter.c
patching file vmnet-only/netif.c
patching file vmnet-only/userif.c
Stopping VMware services:
   VMware Authentication Daemon                                        done
   VM communication interface socket family                            done
   Virtual machine communication interface                             done
   Virtual machine monitor                                             done
   Blocking file system                                                done
Using 2.6.x kernel build system.
make:步向目录'/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/3.2.0-23-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= modules
make[1]: 正在步向目录 `/usr/src/linux-headers-3.2.0-23-generic'
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/apic.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/comport.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/hashFunc.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/task.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/vmx86.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/vmcore/moduleloop.o
  LD [M]  /tmp/vmware-root/modules/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/vmware-root/modules/vmmon-only/vmmon.ko
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-23-generic'
make -C $PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= postbuild
make[1]: 正在走入目录 `/tmp/vmware-root/modules/vmmon-only'
make[1]: “postbuild”是流行的。
make[1]:正在离开目录 `/tmp/vmware-root/modules/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make:离开目录“/tmp/vmware-root/modules/vmmon-only”
Built vmmon module
Using 2.6.x kernel build system.
make:步入目录'/tmp/vmware-root/modules/vmnet-only'
make -C /lib/modules/3.2.0-23-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= modules
make[1]: 正在步向目录 `/usr/src/linux-headers-3.2.0-23-generic'
  CC [M]  /tmp/vmware-root/modules/vmnet-only/driver.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/hub.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/userif.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/netif.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/bridge.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/filter.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/procfs.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/smac_compat.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/smac.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/vnetEvent.o
  CC [M]  /tmp/vmware-root/modules/vmnet-only/vnetUserListener.o
  LD [M]  /tmp/vmware-root/modules/vmnet-only/vmnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmnet-only/vmnet.mod.o
  LD [M]  /tmp/vmware-root/modules/vmnet-only/vmnet.ko
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-23-generic'
make -C $PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= postbuild
make[1]: 正在步入目录 `/tmp/vmware-root/modules/vmnet-only'
make[1]: “postbuild”是流行的。
make[1]:正在离开目录 `/tmp/vmware-root/modules/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make:离开目录“/tmp/vmware-root/modules/vmnet-only”
Built vmnet module
Using 2.6.x kernel build system.
make:踏向目录'/tmp/vmware-root/modules/vmblock-only'
make -C /lib/modules/3.2.0-23-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= modules
make[1]: 正在步入目录 `/usr/src/linux-headers-3.2.0-23-generic'
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/block.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/control.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/dbllnklst.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/dentry.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/file.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/filesystem.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/inode.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/module.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/stubs.o
  CC [M]  /tmp/vmware-root/modules/vmblock-only/linux/super.o
  LD [M]  /tmp/vmware-root/modules/vmblock-only/vmblock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmblock-only/vmblock.mod.o
  LD [M]  /tmp/vmware-root/modules/vmblock-only/vmblock.ko
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-23-generic'
make -C $PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= postbuild
make[1]: 正在走入目录 `/tmp/vmware-root/modules/vmblock-only'
make[1]: “postbuild”是时髦的。
make[1]:正在离开目录 `/tmp/vmware-root/modules/vmblock-only'
cp -f vmblock.ko ./../vmblock.o
make:离开目录“/tmp/vmware-root/modules/vmblock-only”
Built vmblock module
Using 2.6.x kernel build system.
make:步入目录'/tmp/vmware-root/modules/vmci-only'
make -C /lib/modules/3.2.0-23-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= modules
make[1]: 正在步向目录 `/usr/src/linux-headers-3.2.0-23-generic'
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/linux/vmciKernelIf.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciContext.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDatagram.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDriver.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciDoorbell.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciHashtable.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQPair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciQueuePair.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciEvent.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciResource.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/common/vmciRoute.o
  CC [M]  /tmp/vmware-root/modules/vmci-only/driverLog.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vmci-only/vmci.mod.o
  LD [M]  /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-23-generic'
make -C $PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= postbuild
make[1]: 正在步向目录 `/tmp/vmware-root/modules/vmci-only'
make[1]: “postbuild”是风尚的。
make[1]:正在离开目录 `/tmp/vmware-root/modules/vmci-only'
cp -f vmci.ko ./../vmci.o
make:离开目录“/tmp/vmware-root/modules/vmci-only”
Built vmci module
Using 2.6.x kernel build system.
make:步向目录'/tmp/vmware-root/modules/vsock-only'
make -C /lib/modules/3.2.0-23-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= modules
make[1]: 正在步向目录 `/usr/src/linux-headers-3.2.0-23-generic'
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/af_vsock.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/notify.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/notifyQState.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/stats.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/vsockAddr.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/linux/util.o
  CC [M]  /tmp/vmware-root/modules/vsock-only/driverLog.o
  LD [M]  /tmp/vmware-root/modules/vsock-only/vsock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-root/modules/vsock-only/vsock.mod.o
  LD [M]  /tmp/vmware-root/modules/vsock-only/vsock.ko
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-23-generic'
make -C $PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= postbuild
make[1]: 正在进入目录 `/tmp/vmware-root/modules/vsock-only'
make[1]: “postbuild”是新型的。
make[1]:正在离开目录 `/tmp/vmware-root/modules/vsock-only'
cp -f vsock.ko ./../vsock.o
make:离开目录“/tmp/vmware-root/modules/vsock-only”
Built vsock module
Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Blocking file system                                                done
   Virtual ethernet                                                    done
   VMware Authentication Daemon                                        done
   Shared Memory Available                                             done

All done, you can now run VMWare WorkStation.
Modules sources backup can be found in the '/usr/lib/vmware/modules/source-workstation8.0.2-2012-06-14-09:49:26-backup' directory
www.bkjia.com @ubuntu:~$

12.04设置VMware Workstation 8难点其实方法自己早已教过了: 不过在Ubuntu 有人问: www.bkjia.com @ubuntu:~$ sudo sh ./patch-modules_3.2.0.sh ./patch-module...

删除libgcc_s.so.1好像也能够用。

tar cvf vmmon.tar vmmon-onlyrm -rf vmmon-only

      rpm -ivh VMware-server-1.0.10-203137.i386.rpm 

1、下载VMware Workstation 5.5.7 for Linux

设置中错误音讯:

图片 1

多数,VMware的这么些错误和那么些抱怨,是有关部分cairo库和gcc,所以,用符号连接指向它们就能够修复它们,
sudo ln -sf /usr/lib/gcc/i486-linux-gnu/4.2.3/libgcc_s.so /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
sudo ln -sf /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0

替换为:

   配置进程,主要都应用缺省值

最终的手续
  假使您那时尝试去运作vmware,你可能会猎取部分荒唐提醒和你的抱怨,那时还应该有一件事供给大家去设置。(VMware,假诺你看来那个,请在您的正统一发布行版中期维修复这个不当)

接轨编写翻译,vmmon模块是编写翻译通过了,可是vmnet模块又出现了如下的错误:

   1:VMware-server          ########################################### [100%]

For more information on how to troubleshoot module-related problems, please
visit our Web site at “ and
“.

以上的compat_kernel.h定义与2.6.20的基石有不相配的地点,那大家就来修改compat_kernel.h使其与compat_kernel.h与基础包容就足以了。

  一.RHEL版本的VMWare的安装

实验蒙受:Ubuntu 8.04

现行反革命是vmnet的标题,一样的大家要修改不相配的代码,然后重新编写翻译。

  1. Trying to find a suitable vmmon module for your running kernel.
    1. None of the pre-built vmmon modules for VMware Server is suitable for your
  2. running kernel. Do you want this program to try to build the vmmon module for
  3. your system (you need to have a C compiler installed on your system)? [yes]
          1. Trying to find a suitable vmmon module for your running kernel.
    1. None of the pre-built vmmon modules for VMware Server is suitable for your
  4. running kernel. Do you want this program to try to build the vmmon module for
  5. your system (you need to have a C compiler installed on your system)? [yes] yes
    1. Using compiler "/usr/bin/gcc". Use environment variable CC to override.
    1. What is the location of the directory of C header files that match your running
  6. kernel? [/lib/modules/2.6.18-194.el5/build/include]
    1. Extracting the sources of the vmmon module.
    1. tar: vmmon-only/linux/driver.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  7. tar: vmmon-only/linux/driver.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  8. tar: vmmon-only/linux/hostif.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  9. tar: vmmon-only/linux/vmmonInt.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  10. tar: vmmon-only/linux/vmhost.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  11. tar: vmmon-only/linux: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  12. tar: vmmon-only/common/memtrack.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  13. tar: vmmon-only/common/memtrack.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  14. tar: vmmon-only/common/task.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  15. tar: vmmon-only/common/task.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  16. tar: vmmon-only/common/vmx86.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  17. tar: vmmon-only/common/vmx86.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  18. tar: vmmon-only/common/hostif.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  19. tar: vmmon-only/common/hostKernel.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  20. tar: vmmon-only/common/phystrack.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  21. tar: vmmon-only/common/phystrack.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  22. tar: vmmon-only/common/cpuid.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  23. tar: vmmon-only/common/cpuid.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  24. tar: vmmon-only/common/hash.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  25. tar: vmmon-only/common: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  26. tar: vmmon-only/vmcore/driver_vmcore.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  27. tar: vmmon-only/vmcore/moduleloop.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  28. tar: vmmon-only/vmcore: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  29. tar: vmmon-only/include/initblock.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  30. tar: vmmon-only/include/machine.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  31. tar: vmmon-only/include/modulecall.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  32. tar: vmmon-only/include/vm_asm.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  33. tar: vmmon-only/include/vm_asm_x86.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  34. tar: vmmon-only/include/vm_asm_x86_64.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  35. tar: vmmon-only/include/vm_time.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  36. tar: vmmon-only/include/vcpuset.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  37. tar: vmmon-only/include/x86.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  38. tar: vmmon-only/include/x86types.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  39. tar: vmmon-only/include/x86desc.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  40. tar: vmmon-only/include/x86apic.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  41. tar: vmmon-only/include/x86vt.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  42. tar: vmmon-only/include/vmm_constants.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  43. tar: vmmon-only/include/contextinfo.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  44. tar: vmmon-only/include/uccostTable.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  45. tar: vmmon-only/include/x86cpuid.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  46. tar: vmmon-only/include/speaker_reg.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  47. tar: vmmon-only/include/vmware.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  48. tar: vmmon-only/include/vm_assert.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  49. tar: vmmon-only/include/vm_atomic.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  50. tar: vmmon-only/include/vm_basic_asm.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  51. tar: vmmon-only/include/vm_basic_asm_x86.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  52. tar: vmmon-only/include/vm_basic_asm_x86_64.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  53. tar: vmmon-only/include/vm_basic_defs.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  54. tar: vmmon-only/include/vm_basic_types.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  55. tar: vmmon-only/include/vcpuid.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  56. tar: vmmon-only/include/iocontrols.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  57. tar: vmmon-only/include/pshare_ext.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  58. tar: vmmon-only/include/cpuid_info.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  59. tar: vmmon-only/include/vmware_pack_init.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  60. tar: vmmon-only/include/vmware_pack_begin.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  61. tar: vmmon-only/include/vmware_pack_end.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  62. tar: vmmon-only/include/driver-config.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  63. tar: vmmon-only/include/compat_highmem.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  64. tar: vmmon-only/include/compat_pgtable.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  65. tar: vmmon-only/include/compat_spinlock.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  66. tar: vmmon-only/include/compat_uaccess.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  67. tar: vmmon-only/include/compat_mm.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  68. tar: vmmon-only/include/compat_file.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  69. tar: vmmon-only/include/compat_wait.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  70. tar: vmmon-only/include/compat_page.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  71. tar: vmmon-only/include/compat_version.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  72. tar: vmmon-only/include/compat_timer.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  73. tar: vmmon-only/include/compat_semaphore.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  74. tar: vmmon-only/include/compat_sched.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  75. tar: vmmon-only/include/compat_kernel.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  76. tar: vmmon-only/include/compat_completion.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  77. tar: vmmon-only/include/pgtbl.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  78. tar: vmmon-only/include/hash.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  79. tar: vmmon-only/include/includeCheck.h: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  80. tar: vmmon-only/include: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  81. tar: vmmon-only/autoconf/geninclude.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  82. tar: vmmon-only/autoconf/nopage1.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  83. tar: vmmon-only/autoconf/skas1.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  84. tar: vmmon-only/autoconf/epoll.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  85. tar: vmmon-only/autoconf/setnice.c: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  86. tar: vmmon-only/autoconf: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  87. tar: vmmon-only/Makefile.normal: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  88. tar: vmmon-only/Makefile.kernel: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  89. tar: vmmon-only/README: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  90. tar: vmmon-only/Makefile: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  91. tar: vmmon-only: time stamp 2009-10-21 05:06:44 is 183125436 s in the future
  92. Building the vmmon module.
    1. Using 2.6.x kernel build system.
  93. make: Entering directory `/tmp/vmware-config0/vmmon-only'
  94. make: Warning: File `Makefile.kernel' has modification time 1.8e 08 s in the future
  95. make -C /lib/modules/2.6.18-194.el5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
  96. make[1]: Entering directory `/usr/src/kernels/2.6.18-194.el5-i686'
  97. make[1]: Warning: File `/usr/src/kernels/2.6.18-194.el5-i686/arch/i386/Makefile.cpu' has modification time 2e 08 s in the future
  98. make[2]: Warning: File `scripts/Makefile.lib' has modification time 8.6e 07 s in the future
  99. CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
  100. CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
  101. CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
  102. CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
  103. CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
  104. CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
  105. CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
  106. CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
  107. CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
  108. LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
  109. make[2]: warning: Clock skew detected. Your build may be incomplete.
  110. Building modules, stage 2.
  111. make[2]: Warning: File `scripts/Makefile.lib' has modification time 8.6e 07 s in the future
  112. MODPOST
  113. CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
  114. LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
  115. make[2]: warning: Clock skew detected. Your build may be incomplete.
  116. make[1]: warning: Clock skew detected. Your build may be incomplete.
  117. make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.el5-i686'
  118. cp -f vmmon.ko ./../vmmon.o
  119. make: warning: Clock skew detected. Your build may be incomplete.
  120. make: Leaving directory `/tmp/vmware-config0/vmmon-only'
  121. The module loads perfectly in the running kernel.

3、步向vmware-any-any-update115.tar.gz解压后的目录vmware-any-any-update115,输入:
tar xvf vmmon.tar
rm vmmon.tar
gedit vmmon-only/include/vcpuset.h
将# #include "asm/bitops.h" 改为 #include "linux/bitops.h"
tar cvf vmmon.tar vmmon-only
rm -rf vmmon-only

cd /usr/lib/vmware/modules/sourcesudo cp vmnet.tar vmnet.tar.oldsudo tar xvf vmnet.tarsudo gedit vmnet-only/userif.c和bridge.c

    

Building the vmmon module.Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only’
make -C /lib/modules/2.6.24-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic’
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config1/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config1/vmmon-only/common/comport.o
CC [M] /tmp/vmware-config1/vmmon-only/common/cpuid.o
在包罗自 include/asm/bitops.h:2 的文件中,
从 /tmp/vmware-config1/vmmon-only/./include/vcpuset.h:74,
从 /tmp/vmware-config1/vmmon-only/./include/modulecall.h:23,
从 /tmp/vmware-config1/vmmon-only/common/vmx86.h:18,
从 /tmp/vmware-config1/vmmon-only/common/hostif.h:18,
从 /tmp/vmware-config1/vmmon-only/common/cpuid.c:
include/asm/bitops_32.h:9:2: 错误: #error only
can be included directly
make[2]: *** [/tmp/vmware-config1/vmmon-only/common/cpuid.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic’
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only’
Unable to build the vmmon module.

然后重新包装:

    成功后,直接实践vmware,第三次运营提示须要周转vmware-config.pl 进行配置.

4、踏向VMware Workstation 5.5.7 for Linux解压后的目录vmware-distrib,输入
cp ~/vmware-any-any-update115/vmmon.tar ~/vmware-distrib/lib/modules/source/
cp ~/vmware-any-any-update115/vmnet.tar ~/vmware-distrib/lib/modules/source/
sudo ./vmware-install.pl

make[1]: Entering directory `/usr/src/linux-headers-2.6.20-5-generic'
CC [M] /tmp/vmware-config1/vmnet-only/driver.o
CC [M] /tmp/vmware-config1/vmnet-only/hub.o
CC [M] /tmp/vmware-config1/vmnet-only/userif.o
/tmp/vmware-config1/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:
/tmp/vmware-config1/vmnet-only/userif.c:629: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/tmp/vmware-config1/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once
/tmp/vmware-config1/vmnet-only/userif.c:629: error: for each function it appears in.)
make[2]: *** [/tmp/vmware-config1/vmnet-only/userif.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmnet-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-5-generic'
make: *** [vmnet.ko] 错误 2
make: Leaving directory `/tmp/vmware-config1/vmnet-only'
Unable to build the vmnet module.

     

甘休时会有局地提醒新闻,配置完结周边没什么影响。第三步不修改vcpuset.h的话会冒出如下错误:

先是备份原始文件,然后解压vmmon.tar:

    在命令行下推行如下命令安装

图片 2

再度编写翻译就一切OK了!图片 3

   Preparing...                ########################################### [100%]

2、下载vmware-any-any-update115.tar.gz(好像vmware-any-any-update116.tar.gz好些)

tar cvf vmnet.tar vmmon-onlyrm -rf vmnet-only

    作者使用提 VMware-server-1.0.10-203137.i386.rpm以此装置包.

static inline _syscall1(int, compat_exit, int, exit_code);

    

第一备份原始的vmnet.tar,并解压:

  

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) static inline _syscall1(int, compat_exit, int, exit_code);#endif

  1. [root@hxy tools]# /usr/bin/vmware-config.pl
  2. Making sure services for VMware Server are stopped.
    1. Stopping VMware services:
  3. Virtual machine monitor [ OK ]
    1. You must read and accept the End User License Agreement to continue.
  4. Press enter to display it.
    1. Do you accept? (yes/no) yes
    1. Thank you.
    1. Configuring fallback GTK 2.4 libraries.
    1. In which directory do you want to install the mime type icons?
  5. [/usr/share/icons]
      1. What directory contains your desktop menu entry files? These files have a
  6. .desktop file extension. [/usr/share/applications]
      1. In which directory do you want to install the application's icon?
  7. [/usr/share/pixmaps]

然后重新打包vmmon.tar:

  1. Do you want networking for your virtual machines? (yes/no/help) [yes]
      1. Configuring a bridged network for vmnet0.
    1. Your computer has multiple ethernet network interfaces available: eth0, eth1.
  2. Which one do you want to bridge to vmnet0? [eth0] eth0
    1. The following bridged networks have been defined:
    1. . vmnet0 is bridged to eth0
    1. Do you wish to configure another bridged network? (yes/no) [no]
      1. Do you want to be able to use NAT networking in your virtual machines? (yes/no)
  3. [yes] no
    1. Do you want to be able to use host-only networking in your virtual machines?
  4. [no] yes
    1. Configuring a host-only network for vmnet1.
    1. Do you want this program to probe for an unused private subnet? (yes/no/help)
  5. [yes]
    1. Probing for an unused private subnet (this can take some time)...

将里面包车型客车CHECKSUM_HW替换成CHECKSUM_COMPLETE。

   

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.20-5-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-5-generic'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:80:
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-5-generic'
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

      

cd /usr/lib/vmware/modules/sourcesudo cp vmmon.tar vmmon.tar.oldsudo tar xvf vmmon.tarsudo gedit vmmon-only/include/compat_kernel.h

    可以从官方网址下载安装程序,VMWare Server是无需付费的,你能够从见到相关注解

   

 配置互联网,这里生硬提议选用三个桥接,一个HOST Only,那是做嵌入式开垦必得的布局双网卡配置.

  1. [root@hxy tools]# vmware
  2. vmware is installed, but it has not been (correctly) configured
  3. for this system. To (re-)configure it, invoke the following command:
  4. /usr/bin/vmware-config.pl.

日常设想机的大面积现象是在WINDOWS下安装Linux设想机,不过有一对情状供给倒过来,举个例子在Linux下安装VMware虚构机来回转安装WINDOWS.

TAG标签:
版权声明:本文由美高梅网投平台发布于美高梅简介,转载请注明出处:20内核下编译出错的解决办法,04下成功安装vmw