Centos/redhat and Debian/ubuntu cannot find solution for kernel header path when installing VMware Tools

Source: Internet
Author: User

Install VMware Tools and always prompt when running vmware-config-tools.pl:
The path "is not valid."
What is the location of the directory of C header files, match your running
Kernel?


For Centos/redhat and Ubuntu/debian, the solution is basically the same, but the input commands are different. Centos/redhat

you need to enter a command to install Kernel-headers:

Yum Install Kernel-headers

Enter command to install Kernel-devel:
Yum Install Kernel-devel

Once the installation is complete, the installation files for VMware Tools can be run and the installation will be successful.


Ubuntu/debian 1. Update or install Linux headers
sudo apt-get update && sudo apt-get install build-essential linux-headers-$ (uname-r)
After the installation is complete, you should be able to resolve the problem. If not, then:

2. The associated file is because VMware Tools does not think the path is valid because the files are not found.
cd/lib/modules/$ (uname-r)/build/include/linux
sudo ln-s. /generated/utsrelease.h
sudo ln-s. /generated/autoconf.h
sudo ln-s. /generated/uapi/linux/version.h

3. Perform the installation again, OK:
sudo./vmware-install.pl


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.