On Tue, 10 Feb 2004 09:23:29 +1300, you wrote:

>Encouraged by a posting on alt.os.linux.mandrake, I took another crack 
>at my downloaded RPM file, with the following result:
>                                                                                      
>                                         
>
>rpm -ivh kernel-2.4.22.10mdk-1-1mdk.src.rpm
>                                                                                      
>                                         
>
>[EMAIL PROTECTED] src]$ ls /usr/src/RPM/SOURCES
>linux-2.4.22-q10.tar.bz2  linux-mdkconfig.h       
>linux-merge-modules.awk  README.Mandrake
>linux-2.4.22.tar.bz2      linux-merge-config.awk  README.kernel-sources
>                                                                                      
>                                         
>
>I used file-roller to extract part of linux-2.4.22.tar.bz2 (there must 
>have been a command-line way of doing this). I now have a bucket-full of 
>header files in /usr/src/linux-2.4.22/include/linux/, but no version.h, 
>being the file that gave me the error message in the first place. Here's 
>the error message again:
>                                                                                      
>                                         
>
>#error "To build kernel modules please do the following:"
>#error ""
>#error " o Have the kernel sources installed"
>                                                                                      
>                                         
>
>Done. Hooray.
>                                                                                      
>                                         
>
>#error " o Make sure that the symbolic link"
>#error "   /lib/modules/`uname -r`/build exists and points to"
>#error "   the matching kernel source directory"
>                                                                                      
>                                         
>
>Which directory do they mean? I assume /usr/src/linux-2.4.22/. Anyway, 
>how do you make a symbolic link? I think that I can do it in Nautilus, 
>but how do you do it at the command line?
>                                                                                      
>                                         
>
>#error " o Now copy /boot/vmlinuz.version.h to"
>#error "   /lib/modules/`uname -r`/build/include/linux/version.h"
>                                                                                      
>                                         
>
>Gotcha. There is no /boot/vmlinuz.version.h. Here's /boot:
>                                                                                      
>                                         
>
>[EMAIL PROTECTED] src]$ ls /boot
>boot.0300            diag2.img                kernel.h@              
>message-graphic          us.klt
>config@              grub/                    kernel.h-2.4.22-10mdk  
>message-text             vmlinuz@
>config-2.4.22-10mdk  initrd-2.4.22-10mdk.img  map                    
>System.map@              vmlinuz-2.4.22-10mdk
>diag1.img            initrd.img@              message@               
>System.map-2.4.22-10mdk
>                                                                                      
>                                         
>
>What do I do now? Buy an Apple? Man, this is a steep learning curve. 
>Freedom sure don't come cheap. When's that 
>bring-it-along-and-give-it-a-crack night? This is a laptop, after all.
>
>
>
You need to install the kernel-source rpm. Alternatively, download the
latest ( 2.4.24 or 2.6.2 ) tarball from www.kernel.org, and get away
from this rpm hell!

hth,

Steve

Reply via email to