If you are going to be building packeges from source, then you will need to install your distro’s version of the build tool packages.
Luckily, CentOS, Redhat and Ubuntu all have easy ways to do so.
-
Ubuntu
sudo apt-get install build-essential
CentOS/Redhat
yum groupinstall "Development Tools"
Happy building.