红联Linux门户
Linux帮助

Ubuntu 12.04安装VMware Workstation 8问题

发布时间:2014-11-02 21:53:36来源:linux网站作者:luozhuang

在Ubuntu 有人问:

www @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 @ubuntu:~$ sudo bash ./patch-modules_3.2.0.sh
./patch-modules_3.2.0.sh: 行 42: patch: 未找到命令


这个时候:要安装path:

www @ubuntu:~$ sudo apt-get install patch
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
建议安装的软件包:
diffutils-doc
下列【新】软件包将被安装:
patch
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 156 个软件包未被升级。
需要下载 80.2 kB 的软件包。
解压缩后会消耗掉 223 kB 的额外空间。
获取:1 http://mirrors.163.com/ubuntu/ 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 @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 monitordone
Blocking file systemdone
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 monitordone
Virtual machine communication interface  done
VM communication interface socket family done
Blocking file systemdone
Virtual ethernet done
VMware Authentication Daemon done
Shared Memory Availabledone

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 @ubuntu:~$