apt-get install build-essential
If you want to be able to compile packages in red hat/centos, you can issue the following command:
yum install make gcc gcc-c++ kernel-devel
…or, if you don’t care about maintaining a small footprint, you can get all of the development packages (including X devs—eww):
yum groupinstall "Development Tools"
build-essential
在 redahat 企业版(Red Hat Enterprise Linux Server release 6.3 (Santiago))上的安装