configure: error: and their fixes for RHEL / CentOS

This post is dedicated to the various config errors that we encounter while compiling any specific software from source code, the application / software may be different.But their errors and fixes are same for everyone.Here are some config errors and their fixes.