Install kernel headers

From MEPIS Documentation Wiki

Jump to: navigation, search

In order to compile some programs you might need to have kernel headers (C files that define structures and constants that are needed for building most standard programs present). Some programs ask for kernel sources, but most likely the headers are sufficient.

  1. open Konsole
  2. type su and then root password when prompted, and then type (or copy&paste from here):
apt-get install linux-headers-$(uname -r)

This code will enter automatically the number of your working kernel and fetch the appropriate headers.

You might need to execute the following command to create a symlink to the kernel headers (explanation: some programs look in /usr/src/linux for kernel headers, this command links /usr/src/linux to the actually directory where the headers are):

ln -sf /usr/src/linux-headers-$(uname -r) /usr/src/linux
Personal tools
In other languages