此连接为详细安装教程https://www.linuxidc.com/Linux/2017-05/143323.htm
https://www.cnblogs.com/carsonzhu/p/5503425.html
安装过程中出现如下问题:A previous installation of VMware Tools has been detected.
The previous installation was made by the tar installer (version 4).
You have a version of VMware Tools installed. Continuing this install will
first uninstall the currently installed version. Do you wish to continue?
(yes/no) [yes] y
Uninstalling the tar installation of VMware Tools.
Unable to find the answer LIBDIR in the installer database
(/etc/vmware-tools/locations). You may want to re-install VMware Tools.
Execution aborted.
Uninstall failed. Please correct the failure and re run the install.
Execution aborted.
原因是之前有未完成的安装
解决方法:
1. 删除etc/vmware-tools目录
rm -rf /etc/vmware-tools
2. 删除/tmp/vm* 注意不要把 VMwa*的也删除了
rm -rf /tmp/vm*
———————----------------------
然后重新执行
tar -zxvf VMwareTools* 重复正常操作
OK