Just a heads up anyone having problems compiling modules just run the script below with root permissions, [edit] the version of VMware to match your version. Saved me many times on different hardware currently a Dell XPS 7590.
Although people often post virtualization related topics in this Applications forum, all virtualization specific posts really belong in the Virtualization forum.
Since your script must be executed in a console with elevated privileges (ie root as you’ve posted), there is no need for those “sudo” because you’re already elevated.
All scripts and other code like content like stdout, stdin and sderr should be enclosed in
tags which can easily created with the hash tag (#) in your HTML Forums text editor.
4. When you do something that's not fully documented like those two commands that remove library files, you should include comments that explain your action.
TSU