ubuntu 客户机安装VMware tools时出现编译错误,无法与主机共享文件
2016-10-13 15:36
639 查看
主机:win7旗舰版
vmware workstation 10.0.7 (其他10.x版本也有这个问题)
客户机:Ubuntu14.04.4-16.x
安装vmware tools时出现下列编译错误,共享文件夹的功能不能实现,剪贴板等正常。
下面是部分错误代码:
解决方法:
1. 确保 open-vm-tools没有安装。
sudo apt-get remove open-vm-tools
2.确保完成更新
sudo apt-get update
3.安装了git
sudo apt-get install git
4.运行命令从库中获取工具.
sudo git clone https://github.com/rasa/vmware-tools-patches.git
或者
sudo git clone https://github.com/rasa/vmware-tools-patches
5.进入vmware-tools-folder目录
cd vmware-tools-patches
6.运行补丁下载工具
sudo ./download-tools.sh
下载所有的补丁,或者
sudo ./download-tools.sh latest
下载最新的补丁
7.解压并打补丁
sudo ./untar-and-patch.sh
8.运行 complie.sh file
sudo ./compile.sh
下面的图片就是我打完补丁后的共享文件夹截图:
本文转自:https://communities.vmware.com/thread/509898?start=0&tstart=0
原文中是在vmware workstation 11中安装Ubuntu 15.04,但是经过测试,在vmware 10中安装Ubuntu 14.04也可以使用同样的解决方法。
vmware workstation 10.0.7 (其他10.x版本也有这个问题)
客户机:Ubuntu14.04.4-16.x
安装vmware tools时出现下列编译错误,共享文件夹的功能不能实现,剪贴板等正常。
下面是部分错误代码:
<span style="font-size:14px;">/tmp/modconfig-O5xscq/vmhgfs-only/dir.c: In function ‘HgfsPackDirOpenRequest’: /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:417:26: error: ‘struct file’ has no member named ‘f_dentry’ file->f_dentry) < 0) { ^ /tmp/modconfig-O5xscq/vmhgfs-only/dir.c: In function ‘HgfsDirLlseek’: /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:707:32: error: ‘struct file’ has no member named ‘f_dentry’ struct dentry *dentry = file->f_dentry; ^ In file included from /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:39:0: /tmp/modconfig-O5xscq/vmhgfs-only/dir.c: In function ‘HgfsReaddirNextEntry’: /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:993:31: error: ‘struct file’ has no member named ‘f_dentry’ si = HGFS_SB_TO_COMMON(file->f_dentry->d_inode->i_sb); ^ /tmp/modconfig-O5xscq/vmhgfs-only/module.h:89:62: note: in definition of macro ‘HGFS_SB_TO_COMMON’ #define HGFS_SB_TO_COMMON(sb) ((HgfsSuperInfo *)(sb)->s_fs_info) ^ /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1082:26: error: ‘struct file’ has no member named ‘f_dentry’ *entryIno = file->f_dentry->d_inode->i_ino; ^ In file included from /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:30:0: /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1088:44: error: ‘struct file’ has no member named ‘f_dentry’ *entryIno = compat_parent_ino(file->f_dentry); ^ /tmp/modconfig-O5xscq/vmhgfs-only/./shared/compat_fs.h:120:46: note: in definition of macro ‘compat_parent_ino’ #define compat_parent_ino(dentry) parent_ino(dentry) ^ /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1093:52: error: ‘struct file’ has no member named ‘f_dentry’ *entryIno = HgfsGetFileInode(&entryAttrs, file->f_dentry->d_inode->i_sb); ^ /tmp/modconfig-O5xscq/vmhgfs-only/dir.c: In function ‘HgfsDoReaddir’: /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1173:13: error: ‘struct file’ has no member named ‘f_dentry’ !(file->f_dentry) || ^ /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1174:13: error: ‘struct file’ has no member named ‘f_dentry’ !(file->f_dentry->d_inode)) { ^ scripts/Makefile.build:257: recipe for target '/tmp/modconfig-O5xscq/vmhgfs-only/dir.o' failed make[2]: *** [/tmp/modconfig-O5xscq/vmhgfs-only/dir.o] Error 1 make[2]: ** Esperando que outros processos terminem. Makefile:1394: recipe for target '_module_/tmp/modconfig-O5xscq/vmhgfs-only' failed make[1]: *** [_module_/tmp/modconfig-O5xscq/vmhgfs-only] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-15-generic' Makefile:120: recipe for target 'vmhgfs.ko' failed make: *** [vmhgfs.ko] Error 2 make: Leaving directory '/tmp/modconfig-O5xscq/vmhgfs-only' </span>
解决方法:
1. 确保 open-vm-tools没有安装。
sudo apt-get remove open-vm-tools
2.确保完成更新
sudo apt-get update
3.安装了git
sudo apt-get install git
4.运行命令从库中获取工具.
sudo git clone https://github.com/rasa/vmware-tools-patches.git
或者
sudo git clone https://github.com/rasa/vmware-tools-patches
5.进入vmware-tools-folder目录
cd vmware-tools-patches
6.运行补丁下载工具
sudo ./download-tools.sh
下载所有的补丁,或者
sudo ./download-tools.sh latest
下载最新的补丁
7.解压并打补丁
sudo ./untar-and-patch.sh
8.运行 complie.sh file
sudo ./compile.sh
下面的图片就是我打完补丁后的共享文件夹截图:
本文转自:https://communities.vmware.com/thread/509898?start=0&tstart=0
原文中是在vmware workstation 11中安装Ubuntu 15.04,但是经过测试,在vmware 10中安装Ubuntu 14.04也可以使用同样的解决方法。
相关文章推荐
- ubuntu 客户机安装VMware tools时出现编译错误,无法与主机共享文件
- 【VMware】[vm tools]安装VMtools时出现的错误,无法与主机共享文件
- VMware CentOS 7 安装 VMware Tools(修复不能与主机共享文件的错误) 与 控制台分辨率设置
- VMware 下Ubuntu 安装Vmware Tools后hgfs无法显示共享文件的解决办法
- 在ubuntu10.10中安装vmware tools后无法共享文件解决方案
- VMware CentOS 7 安装 VMware Tools(修复不能与主机共享文件的错误) 与 控制台分辨率设置
- 关于ubuntu16.04编译2进制文件时,出现“加载共享库时出错”错误的解决
- VS2005中编译dll文件, 出现"共享段无法找到"的错误及解决办法
- 虚拟机下Ubuntu安装VMWare Tools出现错误“找不到kernel header文件路径”解决办法
- Ubuntu 10.10安装VMware Tools出现错误“找不到kernel header文件路径”的解决办法
- LINUX下无法载入共享的库文件,特别是源码编译安装
- 在Ubuntu终端中使用安装命令Sudo apt-get install xxx时时出现E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)的错误解决方案
- 安装补丁出现0xC8000222错误和系统日志中wuaueng.dll SUS20ClientDataStore 无法读取日志文件的错误
- .NET下编译C++代码时出现fatal error C1083: 无法打开包括文件:“xuhk_JNIHelloWorld.h”: No such file or directory错误的解决方法。
- 在安装Office 2003时出现"安装程序无法读取文件"错误
- chromium 在 Ubuntu 下出现无法打开 config 文件的错误,国外达人的方法。
- 项目文件.NET下编译C++代码时出现fatal error C1083: 无法打开包括文件:“xuhk_JNIHelloWorld.h”: No such file or directory错误的解决方法。
- Ubuntu 安装deb提示“内部错误 无法打开文件..."解决方案
- 安装Oracle10G时出现“无法确定主机的IP地址时产生该异常错误”