How do I install kernel-headers?

Discussion in 'Linux' started by ashpire, Dec 29, 2008.

  1. ashpire

    ashpire

    Joined:
    Sep 10, 2008
    Messages:
    51
    Likes Received:
    0
    Hi,

    I need to use the make and the make install commands to install a driver, so I apparently need something called "headers". Could someone explain me the correct way to install it? I've tried "sudo yum install kernel-headers" which installed "kernel-headers - 2.6.26.6-49.fc8.i386", but it gives this errormessage when I try to do "make":

    Code:
    [user@localhost af9015]$ make
    make -C /home/user/af9015/v4l 
    make[1]: Entering directory `/home/user/af9015/v4l'
    Updating/Creating .config
    Preparing to compile for kernel version 2.6.23
    File not found: /lib/modules/2.6.23.9lw/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.
    make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'.  Stop.
    make[1]: Leaving directory `/home/user/af9015/v4l'
    make: *** [all] Error 2
    [user@localhost af9015]$
    So I think the kernel-headers package which I have installed is too new? How and from where do I get the right one? (It should probably be for 2.6.23.9lw ?)


    EDIT: I found the solution, http://www.aspireoneuser.com/forum/viewtopic.php?f=13&t=608
     
    ashpire, Dec 29, 2008
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.