CentOS 7 Debian 8 安装VMware-tools

时间:2021-09-12 10:01:11

如在安装过程中碰到未找到gcc 或者 kernel headers的可按以下方案解决,适用任意版本

CentOS 7

1. Update the kernel:

$ yum update kernel -y

2. Install the kernel-headers, kernel-devel and other required packages:

$ yum install kernel-headers kernel-devel gcc make -y

3. Reboot the server to make sure it load to the new kernel:

$ init 6

4. The kernel version has been updated including the kernel-headers and kernel-devel:  

# rpm -qa|grep -e kernel-devel -e kernel-headers kernel-devel-3.10.0-327.18.2.el7.x86_64 kernel-headers-3.10.0-327.18.2.el7.x86_64

# uname -r    

3.10.0-327.18.2.el7.x86_64


fyi:http://blog.secaserver.com/2011/09/linux-vmware-tools-installation-error

Debian 8.5

sudo apt-get install make gcc

sudo aptitude install linux-headers-`uname -r`