centos7下安裝vmware tools問題

來源:互聯網
上載者:User

標籤:io   os   ar   檔案   sp   問題   c   on   cti   

新本本到手,東搞搞,西搞搞,終於弄得差不多啦。裝好vmware10之後,立馬建立了一個centos7的虛擬機器,一切還算順利,可是裝vmware tools的時候出西西啦,編譯檔案分享權限設定部分報錯:

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);

安裝完成之後,/mnt/hgfs看不到主機共用的目錄。。。。。還好有狗狗

按照別人描述,進到/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, 然後再安裝成功。。。。。。。。

敢快做個快照睡覺去羅。。。。。

 

等睡醒了起來b4一下7的介面,還是5看起來習慣些。

centos7下安裝vmware tools問題

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.