Jos*_*osh 5 installation vmware 13.04
这里有点Linux noob,我正在尝试安装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?
这个解决方案对我有用: 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)
| 归档时间: |
|
| 查看次数: |
4886 次 |
| 最近记录: |