error: could not configure a c compiler
It is the most common error found while installing the package from its source code. Many times I got this issue while working in CentOS and Red Hat
Actually the source code has some scripts which require C compiler as the code is written in C language.
If you know programming basic, you can easily understand what is compiler here.
In Linux for solving this issue you have to install C compiler. GCC is the package which we will install in system
yum install gcc
Check and find if issue is resolved.