Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to compile a Kernel module.

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

Cheers,

Stefan

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

You need build-essential and kernel headers.

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

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.