Question : I am trying to install VMware tools on CentOS and RHEL but failed and return below error:
Searching for a valid kernel header path... The path "" is not valid. Would you like to change it? [yes]
Answer : This is because your server have not installed required dependencies or any of the required compiler. To fix this issue, please run below command to install required dependencies.
[root@server ~]# yum -y install gcc make perl kernel-headers kernel-devel