在 13.04 上解压后 VMware 9 安装未打开

Jos*_*osh 5 installation vmware 13.04

这里有点Linux noob,我正在尝试安装VMware,我终于可以离开终端并完成简单的工作,哈哈,但现在我又被卡住了。

我遵循了这些说明,当我到达提取文件夹的这一部分时,安装程​​序没有打开。

提取 VMware 安装程序

我尝试vmware-modconfig --console --install-all在终端中运行,但最后一行说的是“无法安装所有模块,请检查日志以获取详细信息”

日志文件的最后几行说:

x’ defined but not used [-Wunused-function] 
cc1: some warnings being treated as errors 
make[2]: *** [/tmp/modconfig-exlEke/vmci-only/linux/driver.o] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
make[1]: *** [_module_/tmp/modconfig-exlEke/vmci-only] Error 2 
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic' 
make: *** [vmci.ko] Error 2 
make: Leaving directory `/tmp/modconfig-exlEke/vmci-only' 
Unable to install all modules. See log for details.
Run Code Online (Sandbox Code Playgroud)

聊天中的一位用户说这看起来像是内核模块的问题。如何在 Ubuntu 13.04 内核下安装 VMware Workstation 9 3.8.0-19-generic

Vin*_*nzo 4

这个解决方案对我有用: http://ubuntuforums.org/showthread.php ?t=2107900

启动这个脚本:

#!/bin/bash
if [[ $UID != 0 ]]; then
    echo "Please run this script with sudo:"
    echo "sudo $0 $*"
    exit 1
fi

sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

cd /usr/lib/vmware/modules/source
sudo tar -xf vmci.tar
cd vmci-only/linux
sudo sed '127s/.*/   .remove = vmci_remove_device,/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
sudo sed '1753s/.*/static int/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
sudo sed '1981s/.*/static void/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
cd ../..
sudo tar -cf vmci.tar vmci-only/
sudo rm vmci-only/ -Rf
sudo vmware-modconfig --console --install-all
sudo rm /usr/src/linux-headers-$(uname -r)/include/linux/version.h
echo "Done"
Run Code Online (Sandbox Code Playgroud)


小智 0

升级到 13.04 Vmware 后停止工作。我删除了Vmware Workstation,再次安装并运行上面的脚本。旧配置正在运行,旧虚拟机正在运行:D