The configure error: no acceptable C compiler found in $PATH is occurring when we running code that needs a compiler to compile it.
The solution of no acceptable C compiler found in $PATH is installing the gcc compiler or “Developer Tools” on your machine.
For RedHat and CentOS:
sudo yum groupinstall "Development Tools"
For Debian based:
sudo apt-get install build-essential
Let the installation compete and run the code or whatever you want again.