I thought to document so others can be benefited from it.

Solution

This usually happens when you don’t have C/GCC compiler installed on your server. All you got to do is to install gcc to resolve this. If using CentOS 8 then you can use the DNF command. Once installed, you can verify as below. This has helped me and I hope you too. Learn more about Linux administration here.