Search results for linux-kernel-headers :
OpenSuSE ftp.opensuse.org/distribution/11.2/repo/oss/suse/noarch/linux-kernel-headers-2.6.31-3.4.noarch.rpm
OpenSuSE ftp.opensuse.org/distribution/11.1/repo/oss/suse/noarch/linux-kernel-headers-2.6.27-2.28.noarch.rpm
OpenSuSE ftp.opensuse.org/distribution/11.3/repo/oss/suse/noarch/linux-glibc-devel-2.6.32-3.3.noarch.rpm
特别注意最后一个包,名字是不一样的,但是这里的内容却是差不多的。
> rpm -qa | grep kernel
kernel-desktop-2.6.34-12.3.i586
kernel-devel-2.6.34-12.3.noarch
kernel-firmware-20100617-2.2.noarch
kernel-source-2.6.34-12.3.noarch
linux-kernel-headers-2.6.31-3.4.noarch
可以对查询结果比较一下:
rpm -qlp linux-glibc-devel-2.6.32-3.3.noarch.rpm
rpm -ql linux-kernel-headers
另外一个值得一看的:
Irrelevant, linux-kernel-headers does _not_ contain the headers needed for compiling a kernel module, see "rpm -qi linux-kernel-headers".
You need "kernel-$flavor-devel" matching the flavor of your running kernel, "uname -r" will tell you.
Problem solved Thank you for the tip.
While trying to get the most recent version of the headers, I've added this repository:
This is why I was having a different kernel_default version. After disabled it and downgrade the kernel-default-devel, all went fine.
--EOF--
Leave a comment