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.
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
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
so it should be /usr/src/linux where the header files are installed
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
Hello haitek,
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!
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
Hello haitek,
Could you post the output of this command:
uname -r
It should return something like this:
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!
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.
Hello haitek,
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!
On 11.3 you just need the following 3 packages (since you have kernel-desktop installed - if some other replace kernel-desktop-devel accordingly):
kernel-desktop-devel
kernel-devel
kernel-source
The path where they get installed is /usr/src/linux
Hey again Edward!
The “Kernel development” files all seem to be installed, except for a few that obviously aren’t really necessary. This has got me stumped! I had this problem with an earlier version of SUSE and was unable to resolve it.
I need some sleep I’ll try again tomorrow. Thanks again for your suggestions.
Regards, Abi
Hey ash25!
I have those three files installed but still no go. Thanks for your comment.
One of the problems of installing stuff at random is that you can confuse things. Are you sure you have not inadvertently installed additional kernels?
In Yast do a search for kernel. remove all that start with kernel except kernel-desktop. Now install the kernel-Source and Kernel-desktop-devel