[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Newbie Q: Where are my kernel sources?



On Wed, Aug 13, 2003 at 12:00:21PM +1000, Chris Share wrote:
> At 11:36 AM 8/13/03, Johann Koenig wrote:
> >On Wed, 13 Aug 2003 11:26:42 +1000
> >Chris Share <cpsmusic@labyrinth.net.au> wrote:
> >
> >> Hi,
> >>
> >> I'm trying to install HSF modem drivers for my linmodem.
> >>
> >> In the installation instructions it says the following:
> >>
> >> run "make install" from the top of the package directory. (Debian
> >> users might need to change the KERNELSRC definition in
> >> modules/common.mak first).
> >>
> >> I tried doing this and got the following error:
> >>
> >> "KERNELSRC does not point to a proper directory."
> >>
> >> According to some other information I found on the web, the entry
> >> should read something like:
> >>
> >> #KERNELSRC= /usr/src/kernel-headers-2.4.18-686 (depending on the
> >> actual kernel being used). However, when I go to /usr/src all that's
> >> there is a directory called RPM which contains several directories
> >> that appear to be empty.
> >>
> >> Where should the kernel source be on my Debian 3.0 r1 system?
> >>
> >> How can I locate it?
> >
> >apt-cache search kernel-source
> >
> >But you probably just need the headers
> >
> >apt-cache search kernel-headers
> >
> >Use 'uname -a' to figure out which one you need.
> 
> I tried what you suggested and found plenty of files however apt-cache 
> still didn't tell me where they were on my computer.
> 
> How do I figure out the file path to the kernel-headers?

No, they're not on your computer yet. You need to install the correct
package: something like
  
  apt-get install kernel-headers-`uname -r`

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

Attachment: pgpQlu1CEpweQ.pgp
Description: PGP signature


Reply to: