SILVERPENGUIN Posted December 9, 2003 Report Share Posted December 9, 2003 Alright, I am running MDK 9.2. I, as you will soon discover am a greenhorn (newbie) when it comes to Linux anything! Two days ago I downloaded MDK 9.2 and discovered that although it identified my Nvidia Ti4600 graphics card, it lacked the driver. I went to NVIDIA and downloaded the proper driver and after discovering how to get into root and run the command, a problem ocurred! Basically after trying to download the Kernel from NVIDIA, then trying to compile one itself, it told me this: Unable to find the kernel header files for the current running kernel. Please make sure you have installed the kernel header files for your kernel; on RH linux systems, for example, be sure you have the 'kernel-source' RPM installed. If you know the correct kernel header files are installed, you ma6y specify the kernel included path with the '--kernel-path' commandline option. Who-the, what-the, how-the? Quote Link to comment Share on other sites More sharing options...
bvc Posted December 9, 2003 Report Share Posted December 9, 2003 Welcome to the board! Checkout our FAQ http://www.mandrakeusers.org/index.php?showforum=29 it has your answer http://www.mandrakeusers.org/index.php?showtopic=4567 except maybe in step 3. ML9.2 (3 cd's) didn't/doesn't have the kernel-source. So if urpmi kernel-source fails to locate a kernel-source, you'll have to download it, or configure urpmi to have some sources so that when you do urpmi kernel-source it will find a matching version on a mirror, download it, and install it. Instructions for all of the above are in the FAQ, but as always, we're here to help if you need further assistant. Have fun! Quote Link to comment Share on other sites More sharing options...
SILVERPENGUIN Posted December 9, 2003 Author Report Share Posted December 9, 2003 (edited) Beautiful.....Thank you! BTW, I'm going to pick up a copy of SUSE 9 Pro this Xmas. Hope you will be handy! Edited December 9, 2003 by SILVERPENGUIN Quote Link to comment Share on other sites More sharing options...
TopDog Posted December 9, 2003 Report Share Posted December 9, 2003 Unable to find the kernel header files for the current running kernel. Please make sure you have installed the kernel header files for your kernel; on RH linux systems, for example, be sure you have the 'kernel-source' RPM installed. If you know the correct kernel header files are installed, you may specify the kernel included path with the '--kernel-path' commandline option. I've installed the kernel source (had to when I installed the nForce2 drivers), but still get this message... What can I do? How do I specify the kernel included path with the '--kernel-path' commandline option, and where is it installed? As you understand I'm a real newbie in linux, Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted December 9, 2003 Report Share Posted December 9, 2003 One problem I ran across when I first installed 9.2 was that urpmi gave me the wrong kernel source. The one it gave me was 2.4.22-21 (I think) and the default kernel (at the time, maybe it's changed) was 2.4.22-10. That could be your problem. Check and make sure that your kernel source matches your kernel. Easy way to check what source you have is to go to /usr/src and look at the folders there. There should be a linux one, symlinked to your actual source. If you haven't done any messing with the kernel, this will be the only other folder there other than RPM/ Check that version number against the config, initrd, vmlinuz, etc files in /boot. They will also be symlinks, but it's rather easy to tell if you use a file manager to look (like nautilus) Quote Link to comment Share on other sites More sharing options...
aRTee Posted December 9, 2003 Report Share Posted December 9, 2003 do a uname -r (if -r is the right thing; try -h or -help or so to find more options) then do urpmi --fuzzy kernel-source and it will give you the list of all available source rpms. Then urpmi kernel-source[your version that matches what uname tells you you are running] Enjoy. Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted December 9, 2003 Report Share Posted December 9, 2003 TopDog do what aRTee said. You probably installed the wrong kernel source and that's incredibly easy to do in mdk 9.2. Here's what happens. The download version does not include the kernel source and uses kernel 2.4.22-10mdk. Now after installing, if you go over to mandrake update you'll see an update package for kernel-source, but it is NOT, repeat NOT for kernel 2.4.22-10mdk. That kernel source corresponds to the updated kernel 2.4.22-21mdk. If you install that source with kernel 2.4.22-10mdk, you'll get nothing but kernel header errors if you try to compile anything, i.e. it won't work. You can download the correct kernel source for kernel 2.4.22-10mdk here: ftp://ftp.nluug.nl/pub/os/Linux/distr/Man...6/Mandrake/RPMS The package you want is: kernel-source-2.4.22-10mdk.i586.rpm Quote Link to comment Share on other sites More sharing options...
bvc Posted December 9, 2003 Report Share Posted December 9, 2003 if you think you have the wrong kernel-source version you could uninstall it. No reason to have a useless 150MB sitting around. Urpmi will not replace/install over it but rather next to it. Also, I compiled/installed several apps and nvidia with kernel-source-2.4.22-19mdk while having kernel-2.4.22-10mdk while it's true you want an exact match if possible, 10 to 19 is usually not a big enough diff to give errors. Quite often a new kernel is released and you'll find no matching source for a while. This is normal for whatever reason and not usually a prob. (never has been for me) the installer first looks for a /lib/modules/uname -r ><version>/build symlink to /usr/src/kernel-<version>/linux/and i think 'includes' and if it doesn't find 'build', goes straight to /usr/src/linux which is a symlink to /usr/src/kernel-<version> the build symlink isn't really used anymore (your mileage may differ) so the command file /usr/src/linux will tell you where the 'linux' symlink points to and should match your running kernel version (uname -r) and is where the nvidia installer is going to look. [edit] oh, and I once had this happen to me. To fix it i did (as root) cd /usr/src/linux make mrproper make xconfig then exit xconfig>confirm to save the config, and try again. Worked for me. Quote Link to comment Share on other sites More sharing options...
SILVERPENGUIN Posted December 9, 2003 Author Report Share Posted December 9, 2003 (edited) The following packages have bad signatures: /home/silverpenguin/Documents/kernel-source-2.4.22-10mdk.i586.rpm: Invalid signature ((SHA1) DSA sha1 md5 (GPG) (MISSING KEY) GPG#70771ff3 NOT OK) Do you want to continue installation ? This is the reply I get when trying to install that, pmpatrick. Hmmm...when I look in my desktop configure it says I have 2.4.22-10mdk.i686.....Does that matter? Oh and I do have this kernel-2.4.22-10mdk There are two of them in there, one of them is the enterprise version. What the heck does that mean? And, bvc, this is what the command gives me. file /usr/src/linux /usr/src/linux: Can't stat `/usr/src/linux' (No such file or directory) [silverpenguin@localhost silverpenguin]$ ...And....aRTee, this is what I get from the second command. [silverpenguin@localhost silverpenguin]$ urpmi --fuzzy kernel-source bash: urpmi: command not found [silverpenguin@localhost silverpenguin]$ Edited December 9, 2003 by SILVERPENGUIN Quote Link to comment Share on other sites More sharing options...
SILVERPENGUIN Posted December 9, 2003 Author Report Share Posted December 9, 2003 I can't even install a Java plug-in for Mozilla. It say's it installed, but it didn't! This is insane! Quote Link to comment Share on other sites More sharing options...
bvc Posted December 9, 2003 Report Share Posted December 9, 2003 Ignore the SIG thing and say Y. It's like installing a driver for new hardware off the cd that came with that hardware and win2k says it's not a certified MS driver are you sure you want to continue. No biggy. file /usr/src/linux is missing because you haven't installed the kernel-source urpmi should definately be installed...is by default. Use the gui mcc>Software Management>rpmdrake+ to Search for it and install it. lets worry about java after the kernel-source ;) [EDIT] you are not root file /usr/src/linux/usr/src/linux: Can't stat `/usr/src/linux' (No such file or directory) [silverpenguin@localhost silverpenguin]$ ...And....aRTee, this is what I get from the second command. [silverpenguin@localhost silverpenguin]$ urpmi --fuzzy kernel-source bash: urpmi: command not found [silverpenguin@localhost silverpenguin]$ only root can install. See the $ at the end of the prompt? $=user #=root [root@ml root]# Quote Link to comment Share on other sites More sharing options...
SILVERPENGUIN Posted December 9, 2003 Author Report Share Posted December 9, 2003 Trying now. Thanks! Quote Link to comment Share on other sites More sharing options...
SILVERPENGUIN Posted December 10, 2003 Author Report Share Posted December 10, 2003 (edited) By gum....It worked!!!!! Ok, so now I installed that kernel update, then the NVIDIA driver, now.....about that nasty little problem I was having with not getting the plug-ins to work. Everything seems just peachy in it's opinion, yet, when I try to use....in this case a page with java on it....it says I still need the plug-in! This is what I get from aRTs commands [root@localhost root]# cd .. [root@localhost /]# uname -r 2.4.22-10mdk [root@localhost /]# urpmi --fuzzy kernel-source no package named kernel-source [root@localhost /]# Edited December 10, 2003 by SILVERPENGUIN Quote Link to comment Share on other sites More sharing options...
SILVERPENGUIN Posted December 10, 2003 Author Report Share Posted December 10, 2003 How do you install, or confirm urpmi? Quote Link to comment Share on other sites More sharing options...
bvc Posted December 10, 2003 Report Share Posted December 10, 2003 urpmi is installed you just don't have a source for it that has the kernel-source. Just download this ftp://ftp.nluug.nl/pub/os/Linux/distr/Man...-10mdk.i586.rpm to /home/your_user_name>open a terminal>su to root>and rpm -ivh kernel-source-2.4.22-10mdk.i586.rpm you can confirm that a pkg is installed with rpm -q name_of_pkg or all of a group with rpm -qa | grep name_of_pkg I use the vanilla (stock) kernel so below you see I have no kernel-source-x.x.x-xxmdk.i586.rpm [root@ml root]# rpm -q kernel-source package kernel-source is not installed [root@ml root]# rpm -q urpmi urpmi-4.4-37mdk [root@ml root]# rpm -qa | grep rpm rpm-4.2-19mdk rpm-helper-0.9.1-1mdk urpmi-4.4-37mdk gurpmi-4.4-37mdk rpmdrake-2.1-35mdk urpmi.setup-0.4.4-4mdk rpmtools-4.5-13mdk rpm-build-4.2-19mdk [root@ml root]# SEE: man <name> rpm rpmbuild urpmi urpmf urpmq or <name> --help [root@ml root]# urpmi --help urpmi version 4.4 Copyright (C) 1999, 2000, 2001, 2002 MandrakeSoft. This is free software and may be redistributed under the terms of the GNU GPL. usage: --help - print this help message. --update - use only update media. --media - use only the given media, separated by comma. --excludemedia - do not use the given media, separated by comma. --sortmedia - sort media according to substrings separated by comma. --synthesis - use the given synthesis instead of urpmi db. --auto - automatically select a package in choices. --auto-select - automatically select packages to upgrade the system. --no-uninstall - never ask to uninstall a package, abort the installation. --keep - keep existing packages if possible, reject requested packages that leads to remove. --split-level - split in small transaction if more than given packages are going to be installed or upgraded, default is 20. --split-length - small transaction length, default is 1. --fuzzy - impose fuzzy search (same as -y). --src - next package is a source package (same as -s). --install-src - install only source package (no binaries). --clean - remove rpm from cache before anything else. --noclean - keep rpm not used in cache. --force - force invocation even if some packages do not exist. --allow-nodeps - allow asking user to install packages without dependencies checking. --allow-force - allow asking user to install packages without dependencies checking and integrity. --parallel - distributed urpmi accross machines of alias. --wget - use wget to retrieve distant files. --curl - use curl to retrieve distant files. --limit-rate - limit the download speed. --proxy - use specified HTTP proxy, the port number is assumed to be 1080 by default (format is <proxyhost[:port]>). --proxy-user - specify user and password to use for proxy authentication (format is <user:password>). --bug - output a bug report in directory indicated by next arg. --env - use specific environment (typically a bug report). --X - use X interface. --best-output - choose best interface according to the environment: X or text mode. --verify-rpm - verify rpm signature before installation (--no-verify-rpm disable it, default is enabled). --test - verify if the installation can be achieved correctly. --excludepath - exclude path separated by comma. --excludedocs - exclude docs files. -a - select all matches on command line. -p - allow search in provides to find package. -P - do not search in provides to find package. -y - impose fuzzy search (same as --fuzzy). -s - next package is a source package (same as --src). -q - quiet mode. -v - verbose mode. names or rpm files given on command line will be installed. [root@ml root]# Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.