Ubuntu 11.10下安装VMware Tools

2019-07-24 作者:yzc216亚洲城   |   浏览(149)

Ubuntu 11.10下安装VMware Tools的时候一开始以为很顺,只要一路回车  YES就行了。结果遇到了如下提示,说:安装vmware tools必须先安装gcc 和内核头文件

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 个软件包,有 156 个软件包未被升级。
需要下载 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[yzc216亚洲城官方网站,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...

Searching for GCC...

Detected GCC binary at "/usr/bin/gcc".

The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.

Would you like to change it? [no]

结果我百度了很久都找到一种说法是:

在终端下执行以下命令:
cd /usr/src/linux-headers-2.6.35-22-generic/include
       cp -p generated/utsrelease.h linux/utsrelease.h
       cp -p generated/autoconf.h linux/autoconf.h

用这种方法解决了先前的问题 !

可是有一个问题来了??:

Using 2.6.x kernel build system.

make:进入目录'/tmp/vmware-root/modules/vmhgfs-only'

make -C /lib/modules/3.0.0-12-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.

 MODULEBUILDDIR= modules

make[1]: 正在进入目录 `/usr/src/linux-headers-3.0.0-12-generic'

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/backdoor.o

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/backdoorGcc32.o

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/bdhandler.o

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/cpName.o

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/cpNameLinux.o

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/cpNameLite.o

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/dentry.o

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/dir.o

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/file.o

/tmp/vmware-root/modules/vmhgfs-only/file.c:120:4: 警告: 从不兼容的指针类型初始化 [默认启用]

/tmp/vmware-root/modules/vmhgfs-only/file.c:120:4: 警告: (在‘HgfsFileFileOperations.fsync’的初始化附近) [默认启用]

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/filesystem.o

/tmp/vmware-root/modules/vmhgfs-only/filesystem.c:48:28: 致命错误: linux/smp_lock.h:没有那个文件或目录

编译中断。

make[2]: *** [/tmp/vmware-root/modules/vmhgfs-only/filesystem.o] 错误 1

make[1]: *** [_module_/tmp/vmware-root/modules/vmhgfs-only] 错误 2

make[1]:正在离开目录 `/usr/src/linux-headers-3.0.0-12-generic'

make: *** [vmhgfs.ko] 错误 2

make:离开目录“/tmp/vmware-root/modules/vmhgfs-only”

(我晕蛋了!!)

又一次百度了良久后,找不到解决方案,所以我决定!我要装ubuntu11.04!!

最后,我的解决方案是升级了Vmware版本,原来是旧版本的Vmware tools和ubuntu不合,所以有时候还是要跟进版本啊,要不然折腾死人了。

yzc216亚洲城官方网站 1

本文由yzc216亚洲城发布于yzc216亚洲城,转载请注明出处:Ubuntu 11.10下安装VMware Tools

关键词: yzc216亚洲城