LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-21-2005, 01:17 PM   #1
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Rep: Reputation: 15
Debian kernel header problem and missing folder


I am having problems trying to install a WiFi card (instruction heres: http://rt2x00.serialmonkey.com/wiki/...n_rt2500_Howto) but my problems seem to be related debian kernel header problems

If I do uname -r

I get

2.8.6-1-386

Now if I do an apt-cache search kernel-headers 2.8.6

there are no 2.8.6-1-386 headers listed, there is a 2.8.8-11-386

The instruction are quite specfic to use the exact headers for your kernel. The nearest I can get is 2.6.8-11 or 2.6.8-2

Secondly, regardless of the header I install if I try the following

ln -s /usr/src/<kernel-header>/ /usr/src/linux-<kernel-header>/

I get the error no such file or directory, is this because I don't have
a /usr/src/linux<kernel-hader> directory??? if so how do I get
a /usr/src/linux directory??

Thanks in advance

Tim
 
Old 08-21-2005, 02:12 PM   #2
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian Squeeze / BackTrack 5/ Linux Mint 11
Posts: 359

Rep: Reputation: 32
Kernel headers 2.6.8-2 are the headers for your kernel. If you apt-get install kernel-headers-2.6.8-2 it will install kernel headers 2.6.8-2 and 2.6.8-2-386. These are the headers I ran when I had the 2.6.8-1-386 kernel.

 
Old 08-21-2005, 02:48 PM   #3
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Original Poster
Rep: Reputation: 15
OK I have those header installed

But I still can't get past

ln -s /usr/src/kernel-headers-2.6.8-2-386/ /usr/src/linux-2.6.8-2-386/

I get the error no such file or directory,

I don't have a /usr/src/linux-2.6.8-2-386/ folder so how why or what do I need to do??


Tim
 
Old 08-21-2005, 03:06 PM   #4
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
Quote:
Originally posted by draggin
But I still can't get past

ln -s /usr/src/kernel-headers-2.6.8-2-386/ /usr/src/linux-2.6.8-2-386/
That command does not match your earlier post:
# ln -s /usr/src/<kernel-header>/ /usr/src/linux-<kernel-header>/

Are you sure you don't have this mixed up a little?

Maybe you'd better post the contents of your /usr/src path.
Let's see what you have in there.

Code:
# cd /usr/src/
# ls

Last edited by Xian; 08-21-2005 at 03:15 PM.
 
Old 08-21-2005, 03:16 PM   #5
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Xian
That command does not match your earlier post:
# ln -s /usr/src/<kernel-header>/ /usr/src/linux-<kernel-header>/
I put the <kernel-headers> in as my origanal question was questioning the kernel header that I should use

Quote:
# ln -s /usr/src/kernel-headers-x.x.xx-x-x/
/usr/src/linux-x.x.xx-x-x/
where is the difference in the above compared to

ln -s /usr/src/kernel-headers-2.6.8-2-386/ /usr/src/linux-2.6.8-2-386/

I can't see one, as to why somebody is linking x to y I don't know enough about linux to say, I am just following the instructions

Tim
 
Old 08-21-2005, 04:23 PM   #6
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
Your second example matches fine, but there's not much I can help with unitl you post the contents of your /usr/src/ folder. Use the command I gave in the previous post and then perhaps we can move this along for you.
 
Old 08-22-2005, 12:43 PM   #7
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Original Poster
Rep: Reputation: 15
Here what I get

# cd /usr/src/
# ls

kernel-headers-2.6.8.11 kernel-headers-2.6.8-2-386 kernel-patches kernel-source-2.6.8.tar.bz2 rt2500.tar.gz
kernel-headers-2.6.8-2 kernel-kbuild-2.6.8-3 kernel-source-2.6.8 moduels

Tim
 
Old 08-22-2005, 03:59 PM   #8
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
Open a terminal and enter the commands below.
Let's see if we can make that symlink you are needing.

Code:
$ su
Password:
# cd /usr/src
# ln -s kernel-headers-2.6.8-2-386 linux-2.6.8-2-386
# ls /usr/src/linux-2.6.8-2-386

Last edited by Xian; 08-22-2005 at 04:01 PM.
 
Old 08-22-2005, 04:18 PM   #9
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Original Poster
Rep: Reputation: 15
pluto:/usr/src# ln -s kernel-headers-2.6.8-2-386 linux-2.6.8-2-386
pluto:/usr/src# ls /usr/src/linux-2.6.8-2-386
/usr/src/linux-2.6.8-2-386
pluto:/usr/src#

Does that look right??

Tim
 
Old 08-22-2005, 04:39 PM   #10
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
No, that does not look right.
It should appear similar to below:

# ls /usr/src/linux-2.6.8-2-386
arch fs ipc Makefile net sound
crypto include kernel mm scripts usr
drivers init lib Module.symvers security

Issue the command again or navigate to the folder in a file browser.
What are the contents....?

If still not correct, check the contents of your kernel-headers-2.6.8-2-386.
Maybe that is where the problem resides.

If there is problem in that folder then just link with the default headers.

$ su
# cd /usr/src
# rm /usr/src/linux-2.6.8-2-386
# ln -s kernel-headers-2.6.8-2 linux-2.6.8-2-386
# ls /usr/src/linux-2.6.8-2-386

This shoud work since everthing in kernel-headers-2.6.8-2-386 refers to the kernel-headers-2.6.8-2 directory anyway, so there will be no difference.

Last edited by Xian; 08-22-2005 at 04:56 PM.
 
Old 08-22-2005, 05:02 PM   #11
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Original Poster
Rep: Reputation: 15
Ok this is what is currently in the kernel-headers-2.6.8-2-386

pluto:/usr/src# cd kernel-headers-2.6.8-2-386
pluto:/usr/src/kernel-headers-2.6.8-2-386# ls
arch fs ipc Makefile net sound
crypto include kernel mm scripts usr
drivers init lib Module.symvers security

When viewed in KDE Konqueror the directory list is all in italics?

So I tried

pluto:/usr/src/kernel-headers-2.6.8-2-386# cd ..
pluto:/usr/src# rm /usr/src/linux-2.6.8-2-386
pluto:/usr/src# ln -s kernel-haders-2.6.8-2-386 linux-2.6.8-2-386
pluto:/usr/src# ls /usr/src/linux-2.6.8-2-386
/usr/src/linux-2.6.8-2-386

It might be easier to update my kernel rather than chasing this little problem around. I am going to be away working for a few days so i will have to start this again later in the week.

Thanks for the help, I know I will be back asking for more soon

Tim
 
Old 08-22-2005, 05:09 PM   #12
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
I assume this is a typo since there is no "haders" path:
# ln -s kernel-haders-2.6.8-2-386 linux-2.6.8-2-386

Your folder contents look good. However, I can not explain why the
commands being duplicated on your system produce different results.

See my output below:

Code:
$ su
<password>
# cd /usr/src
# rm /usr/src/linux-2.6.8-2-386
# ls kernel-headers-2.6.8-2
arch     fs       ipc                      lib       net       sound
crypto   include  kernel                   Makefile  scripts   usr
drivers  init     kernel-headers.revision  mm        security
# ln -s kernel-headers-2.6.8-2 linux-2.6.8-2-386
# ls /usr/src/linux-2.6.8-2-386
arch     fs       ipc                      lib       net       sound
crypto   include  kernel                   Makefile  scripts   usr
drivers  init     kernel-headers.revision  mm        security
#

Last edited by Xian; 08-22-2005 at 05:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
help installing snort: pcre header missing cynthia_thomas Linux - Networking 1 11-07-2005 11:19 AM
Missing C header files? kushalkoolwal Programming 3 11-07-2005 04:52 AM
Missing C header for Fortune-Mod goofyheadedpunk Slackware 5 03-06-2005 06:33 PM
Debian kernel 2.6.7-1-686 - Error MAKE XCONFIG - Missing QTDIR BaptismOfFire Linux - Software 4 09-02-2004 06:15 PM
vmware problem with kernel C header files on SuSE 9.1 spariggio82 Linux - General 12 09-02-2004 03:19 PM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration