I have this problem and the previous topic from June 24 has been closed and its solution did not work.
I’m trying to install VMware workstation pro 17.5.1 on Zorin 17.1. The install works fine but when I run it by entering ‘VMware’ it comes up with a message that ‘gnu c compiler (gcc) version 12.3.0 was not found’.