Well, in my working domain I face these tools to be installed, so that most of the dependent tools or programs that need to be deployed later don’t face much of dependency issue. So here goes the installation process for both the OS.
On CentOS/RHEL system use the follwoing command (either one of it would work)-
Type the following yum command as root user:
# yum group install "Development Tools"