I would advise against using VMware tools; use instead the open VMWare tools. Even VMware own white papers advise using open VMware tools nowadays.
To install it in Ubuntu/Debian, you do:
sudo apt update
sudo apt install open-vm-tools
If running a desktop/graphical interface in the VM, and having VMware tools installed in desktop/notebook as in your case, you might also want to install open-vm-tools-desktop
so, the command is instead:
sudo apt install open-vm-tools open-vm-tools-desktop
As an added advantage, open-vm-tools
, at least in pure Debian, does not need to be compiled, and thus not needing to install neither the kernel headers nor the compiler.
Installing it from the package manager also is much more convenient, as it brings automatically the dependencies, security updates and it it plays better with new kernel updates.
From the Ubuntu Wiki VMware/Tools
VMware recommends users to use open-vm-tools on Linux, including
Ubuntu.
From VmWare white paper VMware support for open-vm-tools (2073803)
Benefits
The primary purpose for open-vm-tools is to enable operating system
vendors and/or communities and virtual appliance vendors to bundle
VMware Tools into their product releases. open-vm-tools is the open
source implementation of VMware Tools and consists of a suite of
virtualization utilities that improves the functionality,
administration, and management of virtual machines within a VMware
environment.
.....
The benefits of bundling open-vm-tools are:
End users get the best out-of-box experience to efficiently deploy virtual machines on VMware virtual infrastructure.
Reduces operational expenses and virtual machine downtime, because updates to open-vm-tools packages are provided with operating system
maintenance updates and patches. This eliminates separate maintenance
cycles for VMware Tools updates.
No compatibility matrix check is required for open-vm-tools. Adhering to the VMware Compatibility Matrix for the guest OS release
is sufficient.
open-vm-tools bundled with the operating system provides a compact footprint optimized for each OS release.
.....
VMware support policy
VMware recommends using open-vm-tools redistributed by operating system vendors.
...
- VMware does not recommend removing open-vm-tools redistributed by operating system vendors.
PS. I have managed a couple hundred Debian VMs servers in VMWare ESX, VMWare ESXi and Debian/Ubuntu VMs in VMWare Fusion all using open-vm-tools from Debian 5 to Debian 9 with great success.
PS2. Ubuntu is based on Debian. Mint is Ubuntu (based).
usr/bin/gcc
. Should not be/usr/bin/gcc
?