In Debian-based Linux, a build-essential package is a package containing references to other packages and libraries that are required to build a software from source. This includes gcc(GNU C Compiler), g++(GNU C++ Compiler), make, automake, etc.
It can be installed via apt-get:
su apt-get update su apt-get install build-essential
In Red Hat-based Linux, build-essential package takes the form of a group of packages known as “Development Tools” and “Development Libraries” which can be installed using yum as,
su yum update su yum groupinstall "Development Tools" "Development Libraries"