LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2007, 03:54 PM   #1
St4ckHOu5e
LQ Newbie
 
Registered: Jan 2005
Posts: 12

Rep: Reputation: 0
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!
 
Old 12-20-2007, 03:58 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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).
 
Old 12-20-2007, 04:18 PM   #3
St4ckHOu5e
LQ Newbie
 
Registered: Jan 2005
Posts: 12

Original Poster
Rep: Reputation: 0
where do I get the file to unpack or where do I sym link from?
 
Old 12-21-2007, 04:49 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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.
 
Old 12-21-2007, 05:09 PM   #5
St4ckHOu5e
LQ Newbie
 
Registered: Jan 2005
Posts: 12

Original Poster
Rep: Reputation: 0
It turns out I had to do apt-get install linux-source-2.6.18
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Manual nvidia install needs kernel source, unable to select source in YOU sirius57 Linux - Hardware 2 12-04-2007 05:11 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration