Error VMware Tools Installation (Shared Folder) - Ubuntu 14.04 [SOLVED!]

出错环境:

Workstation 11.0
Ubuntu 14.04 LTS

本来虚拟机一开始用的还是好好的,突然就发现共享文件夹不能用了,尝试重新安装,就出现了一下错误

  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/module.o
/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);

后来搞了半天才发现原来是有次手贱把ubuntu升级了,导致不兼容Workstation 11.0了,于是升级到Workstation 12.0,然后同时把VMware Tools 更新下就好了

posted @ 2015-11-19 18:41  dannyliu  阅读(529)  评论(0)    收藏  举报