Debian:
aptitude install make automake gcc g++ kernel-package fakeroot libncurses-dev kernel-source-`uname -r` linux-headers-`uname -r`
or:
aptitude install build-essential
Fedora:
su - yum install make automake gcc gcc-c++ kernel-devel
of:
su - yum groupinstall "Development Tools" "Development Libraries"