Solution to `linker` error while building `bat`

I was trying to install bat, from source, the clone of cat command with syntax highlighting and Git integration, in a CentOS machine, via cargo, Rust package installer. But it gave me this error: error: linker `cc` not found | = note: No such file or directory (os error 2) error: aborting…