LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel source (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-source-608212/)

St4ckHOu5e 12-20-2007 03:54 PM

Kernel source
 
I am trying to install a program on a NSLU2 running Debian. It asks me:
Code:

Linux kernel (2.6.18-5-ixp4xx) source directory [/usr/src/linux]:
The problem is that I do not have a linux folder in /usr/src/.

This is what an ls or my /usr/src directory shows:
Code:

linux-headers-2.6.18-5  linux-headers-2.6.18-5-ixp4xx  linux-kbuild-2.6.18
I tried doing an apt-get install linux-image-`uname -r` a but that returns:
Code:

linux-image-2.6.18-5-ixp4xx is already the newest version.
where do I find the linux kernel source directory or how do I get it if I do not already have it?

Thank you!

pljvaldez 12-20-2007 03:58 PM

aptitude install linux-source-2.6.18

Then you might have to manually unpack it in the source directory and/or create a symlink (man ln).

St4ckHOu5e 12-20-2007 04:18 PM

where do I get the file to unpack or where do I sym link from?

pljvaldez 12-21-2007 04:49 PM

It should install to the /usr/src directory automatically. I just don't remember if it comes in as a tgz file or whether it all unpacks for you.

St4ckHOu5e 12-21-2007 05:09 PM

It turns out I had to do apt-get install linux-source-2.6.18


All times are GMT -5. The time now is 06:41 PM.