We earn commission when you buy through affiliate links.

This does not influence our reviews or recommendations.Learn more.

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

Solution

This usually happens when you dont have C/GCC compiler installed on your server.

All you got to do is to installgccto resolve this.

If using CentOS 8 then you might use the DNF command.

Once installed, you could verify as below.

This has helped me and I hope you too.

Learn administration here.