Find the answer to your Linux question:
Results 1 to 5 of 5
I'm currently trying to install the Kernel Sources (2.4.27). I have the .deb file on the linux machine but I'm not entirely sure what I'm meant to be doing. I've ...
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    Aberdeen, Scotland
    Posts
    64

    Installing Kernel Sources

    I'm currently trying to install the Kernel Sources (2.4.27). I have the .deb file on the linux machine but I'm not entirely sure what I'm meant to be doing.

    I've tried using:
    Code:
    dpkg -i kernel-source-2.4.27_2.4.27-12_all.deb
    that simply seems to extract a tar.bz.2 file in /usr/src/ which I'm not too sure what to do with.

    If I try using the KDE Package Manager it appears to install within the package manager...but doesn't actually install?

    The reason I'm using a local install is because I have no network there yet and need the sources to compile my ndiswrapper program to get the network to run.

    Can someone point me in the right direction with this problem please.

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    The Hot Humid South
    Posts
    602
    That's all it's supposed to do. If all you need is the source then you're good to go. The kernel source is just the source code, it's not an actual program/binary.

  3. #3
    Linux User
    Join Date
    Apr 2005
    Location
    Ohio
    Posts
    326
    From that pint I usually extract the compressed file so you end up with something like

    tar -xjvf kernel-source-2.4.27-12.tar.bz.2

    so I end up with a folder containing the source

    /usr/src/kernel-source-2.4.27/

    then in /usr/src/ I create a symbolic link named linux to the directory containing the current version.

    /usr/src # ln -s /usr/src/kernel-source-2.4.27/ linux

    That usually makes anything I'm trying to compile that wants the kernel source happy..
    far...out

  4. #4
    Just Joined!
    Join Date
    Aug 2005
    Location
    Aberdeen, Scotland
    Posts
    64
    I've got those files extracted but 'make' still says it can't find the source even using KSRC= to specify the path.

    Any ideas?

    Edit: I think I may have the wrong source files (doh!). I'm going to try a different version just now.

    The reason I thought there might be more to the installation is that I tried Zenwalk(formerly, Minislack) which just use the installpkg command which did the whole thing for me. No archives in sight and it worked straight off. Seemed a bit funny when I just got a compressed file.

  5. #5
    Linux User
    Join Date
    Apr 2005
    Location
    Ohio
    Posts
    326
    Did you create the symbolic link ? that symbolic linux link is the key to the compiler finding the source..

    uname -r

    to check your current kernel version.
    far...out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •