4

I want to compile a Kernel module.

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

Cheers,

Stefan

Phi
  • 163
  • 1
  • 6

2 Answers2

7

You need build-essential and kernel headers.

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

karthick87
  • 80,647
  • 59
  • 193
  • 232
0

At a minimum, you will need gcc and the kernel headers (linux-libc-dev).

Zanna
  • 69,223
  • 56
  • 216
  • 327
binW
  • 12,804
  • 8
  • 49
  • 66