Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: location of kernel headers/installing them

  1. #1

    Question location of kernel headers/installing them

    I'm having a problem locating the kernel headers for 11.3. How can I check if they're installed? How can I install them if they're not there? I'm a newbie to SUSE. I installed the default kernel, I don't know it's version number. Any help would be appreciated.
    Thanx.

  2. #2
    Join Date
    Jul 2010
    Location
    Saarland / Germany / Europe
    Posts
    154

    Default Re: location of kernel headers/installing them

    Hi there,

    the linux kernel headers can be found in /usr/src/
    They should be avaiable after installing "kernel-default-devel"

    Hope that helps

    Greetz Joerg

  3. #3

    Default Re: location of kernel headers/installing them

    Hi there Joerg!
    I have "kernel-default-devel" installed apparently but I get the following error:

    The path "/usr/src/" is not valid.
    Would you like to change it? [yes]

    Does this mean I'm not running the default kernel? Is there any way to check this?

    Thanx again

  4. #4
    Join Date
    Jul 2010
    Location
    Saarland / Germany / Europe
    Posts
    154

    Default Re: location of kernel headers/installing them

    so it should be /usr/src/linux where the header files are installed

  5. #5

    Default Re: location of kernel headers/installing them

    Hey Joerg!
    Now I'm a puzzled penguin too ;-)
    YaST2 shows I've got the right files installed, now I get:

    The pat "/usr/src/linux/" is not valid.
    Would you like to change it? [yes]

    If I knew the names of the files I was looking for, I could do a search of the HDD, maybe then I would find them. Do you know these names?

    Danke schon

    Abi

  6. #6

    Default Re: location of kernel headers/installing them

    Hello haitek,

    Quote Originally Posted by haitek
    YaST2 shows I've got the right files installed, now I get:

    The pat "/usr/src/linux/" is not valid.
    Would you like to change it? [yes]
    If I may ask which program/application is giving you these errors?

    If I'm not mistaking I had a similar problem once.
    I solved it by installing these packages:

    • linux-kernel-headers
    • kernel-source
    • kernel-source-vanilla

    It's most likely that you only need one but I can't recall which one.

    Good luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

  7. #7

    Default Re: location of kernel headers/installing them

    Hey there Edward, thanks for your prompt reply.

    I installed "kernel-source-vanilla" now I get the error:

    What is the location of the directory of C header files that match your running
    kernel?

    The path "" is not valid.
    Would you like to change it? [yes]

    I thought I had installed all the correct files for compiling kernel modules.
    I am trying to install VMware tools in a virtual machine running SUSE 11.3 as the guest OS, I just want a running compiler with all the necessaries.

    Thanks

  8. #8

    Default Re: location of kernel headers/installing them

    Hello haitek,

    Quote Originally Posted by haitek
    What is the location of the directory of C header files that match your running
    kernel?

    The path "" is not valid.
    Would you like to change it? [yes]
    I thought I had installed all the correct files for compiling kernel modules.
    Could you post the output of this command:
    Code:
    uname -r
    It should return something like this:
    Code:
    2.6.31.12-0.2-desktop
    If you've got desktop you need to install "kernel-desktop-devel".
    If you get something different then install the package kernel-<Something>-devel.

    Good luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

  9. #9

    Default Re: location of kernel headers/installing them

    Hi again Edward!

    uname -r returns 2.6.34-12-desktop
    I have "kernel-desktop-devel" installed as well as a heap of other kernel file variations.
    When installing the system, I installed all I could choose so I wouldn't run into this problem, maybe I've got too many installed.

    Thanks for your patience.

  10. #10

    Default Re: location of kernel headers/installing them

    Hello haitek,

    Quote Originally Posted by haitek
    I have "kernel-desktop-devel" installed as well as a heap of other kernel file variations.
    When installing the system, I installed all I could choose so I wouldn't run into this problem, maybe I've got too many installed.
    Maybe but I'm not sure.
    If I'm not mistaking if you install for example kernel-desktop-devel it would create a directory like this:
    /usr/src/linux/<Kerenel-version>-<Kernel kind>
    So Installing multiple kernel sources wouldn't matter.

    I've got an idea.
    Start YaST->Software->Software Management.
    Select the tab Patterns and go to the category Development.
    Now select the pattern "Kernel development".
    It should install all the packages you need for kernel development.

    I'm sorry if some information isn't correct.
    This is because I'm currently on a computer without openSUSE.

    Good luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

Page 1 of 2 12 LastLast

Posting Permissions

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