新本本到手,東搞搞,西搞搞,終於弄得差很少啦。裝好vmware10以後,立馬新建了一個centos7的虛擬機,一切還算順利,但是裝vmware tools的時候出西西啦,編譯文件共享部分報錯:node
In file included from /tmp/modconfig-2MHZ0W/vmhgfs-only/inode.c:36:0:
/tmp/modconfig-2MHZ0W/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
/tmp/modconfig-2MHZ0W/vmhgfs-only/./shared/compat_dcache.h:57:38: error: ‘struct dentry’ has no member named ‘d_count’
#define compat_d_count(dentry) dentry->d_count
^
/tmp/modconfig-2MHZ0W/vmhgfs-only/inode.c:1904:23: note: in expansion of macro ‘compat_d_count’
int dcount = compat_d_count(dentry);centos
安裝完成以後,/mnt/hgfs看不到主機共享的目錄。。。。。還好有狗狗centos7
按照別人描述,進到/tmp/vmware-tools-distrib/lib/modules/source目錄下,解壓vmhgfs.tar,修改解壓後的shared/compat_dcache.h,,,把54行 if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0) 的版本號改爲 3,10。。。從新打包成vmhgfs.tar, 而後再安裝成功。。。。。。。。虛擬機
敢快作個快照睡覺去羅。。。。。io
等睡醒了起來b4一下7的界面,仍是5看起來習慣些。編譯