Fedora

Install development tools and kernel headers for Fedora

Development Tools Installation

yum groupinstall 'Development Tools'

Kernel headers Installation

yum install kernel-devel kernel-headers

or

yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)