1. 程式人生 > >共享檔案--安裝VMware tool時,出現The path va " " appears to be a valid path to the gcc binary.

共享檔案--安裝VMware tool時,出現The path va " " appears to be a valid path to the gcc binary.

在安裝VMware tool時出現如下問題時:
Searching for GCC…

(process:3207): GLib-CRITICAL **: g_file_test: assertion ‘filename != NULL’ failed
Detected GCC binary at “/bin/gcc”.
The path ” ” appears to be a valid path to the gcc binary.
Would you like to change it? [yes]
進行如下操作:
yum -y install gcc gcc-c++ automake make kernel-devel

The path ” ” is not a valid path to the 3.10.0-862.el7.x86_64 kernel headers.
Would you like to change it? [yes]
則需要進行如操作:

yum install “kernel-devel-uname-r == $(uname -r)”

安裝VMware tool完畢後,使用 vmware-hgfsclient可以檢視到共享目錄,但是在/mnt/hgfs中沒有 :
解決方案:>sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -oallow_other
永久生效方法:vi /etc/fstab,在最後一行加入:.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0