Kernel Version Mismatch

Soldato
Joined
14 Feb 2004
Posts
14,312
Location
Peoples Republic of Histonia, Cambridge
I'm using Suse 11 and I'm trying to recompile the kernel with Asterisk but I keep getting an error because the "make" command says it can't find the correct kernel source.

If I run uname - r it says my current kernel version is 2.6.31-50.1.

If I run yast -i kernel-source the version in /usr/src/ is 2.6.31.12-0.2

Any idea why it not getting the correct version of the source? This stuff is all kind of new to me :confused::o
 
Last edited:
just install the matching version of the kernel source?
I suspect I'll either need to do that or recompile my current kernel to match the newer version of the source.

Do you know how I can use yast to download previous kernel source versions?
 
I suspect I'll either need to do that or recompile my current kernel to match the newer version of the source.

Do you know how I can use yast to download previous kernel source versions?

No.. But on debian it's a case of apt-get install linux-source-{`uname -r`} or something similar...
 
Think I've found the answer.

Code:
zypper in kernel-source=2.6.31.5-0.1

Looks like it downloaded the correct version, just hope it works.
 
Nope, doesn't work.

Still the same message "you do not appear to have the sources for the 2.6.31.5-0.1-desktop kernel installed."

This sucks... hard.
 
I do have a symlink. Think I've got it sorted now though. First I installed kernel-source (getting the newer kernel source) using yast. Then use the zypper command to overwrite it with the version I need. Sounds daft but it works. Ah the joys of Linux ;)
 
Back
Top Bottom