Ubuntu – The minimum requirement to compile Kernel modules

buildkernelmodules

I want to compile a Kernel module.

What is the minimal set of packages that I need to download to succeed?

Cheers,

Stefan

Best Answer

You need build-essential and kernel headers.

sudo apt-get install linux-headers-$(uname -r) build-essential