I just made new install of 64bit openSuse 11.3. I need to get kernel sources, but I cannot find them via yast2 sw management.
The ‘uname -r’ command tells me, that my kernel is 2.6.34-12-desktop. The only version i can manage to install via yast is 2.6.34.7-0.7.1 (which, when used, results in error). I have looked at the list of repositories here and it seems i have added all relevant of them.
I updated just before this reply. the ‘uname -r’ now tells 2.6.34.7-0-7-desktop, so i guess the update went OK.
Now I see that the source and kernel version are the same… but I am bit puzzled. I am trying to do some installation, which in process wants to know where ‘linux/version.h’ file is located.
I have tried to supply directories listed on fourth and third line from the bottom, but it results in error saying, that version of header files does not match version of running kernel… I have looked again in sw management via yast2, if I did not overlook some kernel source packages and found nothing.
VMWare Server 2.0.2. Some months ago i managed to install it on openSuse 11.2 with help of Radu Cotescu’s script (post on his blog). I checked his blog again, saw he updated his script, so I gave it a try.
As I was writing this reply, I checked the blog again… Maybe I was not paying much attention. It states that script works for version 2.6.32 AND 2.6.35 kernels… but it does not have to mean, that it works for versions from 2.6.32 TO 2.6.35. one big facepalm
Maybe its time to stick back to openSuse 11.2… sigh.
phaluz wrote:
> I updated just before this reply. the ‘uname -r’ now tells
> 2.6.34.7-0-7-desktop, so i guess the update went OK.
>
> Now I see that the source and kernel version are the same… but I am
> bit puzzled. I am trying to do some installation, which in process wants
> to know where ‘linux/version.h’ file is located.
>
>
> Code:
> --------------------
> # find / -name version.h
> /usr/include/linux/dvb/version.h
> /usr/include/linux/version.h
> /usr/src/linux-2.6.34.7-0.7/drivers/net/cxgb3/version.h
> /usr/src/linux-2.6.34.7-0.7/fs/btrfs/version.h
> /usr/src/linux-2.6.34.7-0.7/include/sound/version.h
> /usr/src/linux-2.6.34.7-0.7/include/xen/interface/version.h
> /usr/src/linux-2.6.34.7-0.7/include/linux/dvb/version.h
> /usr/src/linux-2.6.34.7-0.7/arch/x86/math-emu/version.h
> /usr/src/linux-2.6.34.7-0.7-obj/x86_64/default/include/linux/version.h
> /usr/src/linux-2.6.34.7-0.7-obj/x86_64/desktop/include/linux/version.h
> /usr/src/linux-2.6.34.7-0.7-obj/x86_64/xen/include/config/xen/interface/version.h
> /usr/src/linux-2.6.34.7-0.7-obj/x86_64/xen/include/linux/version.h
>
> --------------------
>
>
> I have tried to supply directories listed on fourth and third line from
> the bottom,
Did you try the most obvious directory, which is
/usr/include/linux/version.h ?
Perhaps you need to install the kernel development files? So, to compile a kernel for instance, I normally open up YaST / Software / Software Management and select the view button on the top left and select Patterns. Then, on the left column, I select Base Development, C++ Development and Kernel Development and allow these Packages to be installed and then see if you can do what you want.