1.先安装gcc与更新kernel-headers yum install gcc -y yum install kernel-devel-$(uname -r) 2.再重新在centos中安装了vmware-tools