[root@dbserver vmware-tools-distrib]# ./vmware-install.pl
CentOS 7.6安装vmware tools执行以下语句时,一直提示The path "" is not a valid path to the 3.10.0-957.el7.x86_64 kernel headers.
解决方案:
a、ctrl+z停止安装
b、安装kernel-devel
[root@dbserver vmware-tools-distrib]# yum -y installkernel-devel-$(uname -r)
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.x86_640:3.10.0-957.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
kernel-devel x86_64 3.10.0-957.el7 centos7.6 17 M
Transaction Summary
==========================================================================================================
Install 1 Package
Total download size: 17 M
Installed size: 37 M
Downloading packages:
Error downloading packages:
kernel-devel-3.10.0-957.el7.x86_64: [Errno 256] No more mirrors to try.
[root@dbserver vmware-tools-distrib]# yum-y install kernel-devel-$(uname -r)
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.x86_640:3.10.0-957.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================
Package Arch Version Repository Size
====================================================================================================================
Installing:
kernel-devel x86_64 3.10.0-957.el7 centos7.6 17 M
Transaction Summary
====================================================================================================================
Install 1 Package
Total download size: 17 M
Installed size: 37 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kernel-devel-3.10.0-957.el7.x86_64 1/1
Verifying :kernel-devel-3.10.0-957.el7.x86_64 1/1
Installed:
kernel-devel.x86_64 0:3.10.0-957.el7
Complete!
c、重新运行./vmware-install.pl
此后一路回车就能安装成功.