LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-03-2003, 05:28 PM   #1
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Rep: Reputation: 15
9.2rc1 No Kernel Sources Installed???


I tried to install the latested nVidia drivers and the install script says "No Kernel Header Files". I took a look in /usr/src/ and there is only an RPM directory.

'uname -r' output shows this kernel ---> 2.4.22-1mdk

I looked through the software package management and found...

kernel-enterprise-2.4.22.1mdk
kernel-secure-2.4.22.1mdk
kernel-smp-2.4.22.1mdk

Which one do I install?

Thanks, Olias
 
Old 09-04-2003, 09:42 AM   #2
kamstrup
Member
 
Registered: Aug 2003
Location: Aarhus, Denmark
Distribution: Slackware, Ubuntu
Posts: 122

Rep: Reputation: 15
None of them, these are actual kernels. You need this package: kernel-source-2.4.22-1mdk. The nVidia script then downloads the source code for the drivers, compiles and installs them (since no precompiled has been released for 92rc (ofcourse)).

Note: If you are new to this you will have to do this entirely from terminal. You cannot have any graphics running at all when installing! If you need help just post back or go find a thread about it -- there's lots

greetings, kamstrup
 
Old 09-05-2003, 08:51 AM   #3
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
I now realize that I will need to install the kernel-source rpm. So as 'SU', I tried ...

# urpmi kernel-source-2.4.22-1mdk.src.rpm

...and got an error registering local packages.

I also tried rpmdrake and looked in all the sections and did not find any kernel-source rpm for my kernel. I guess I'll need some more basic instructions on how to get the kernel-source rpm and where to install it from

Any kind person willing to throw me a bone?

Thanks, Olias

PS: The nVidia thing I understand. Did it before with RH8 but the kernel-source was already in the /usr/src/linux directory.
 
Old 09-05-2003, 09:09 AM   #4
kamstrup
Member
 
Registered: Aug 2003
Location: Aarhus, Denmark
Distribution: Slackware, Ubuntu
Posts: 122

Rep: Reputation: 15
The kernel-source should be on you installation cds. You install these by becomming root (su) and typing 'rpmdrake' OR go to your menu and do: "Configuration --> Configure your computer". Click "Software Managment" and then the install rpm's icon (with a nice little green plus sign) ...

Now do a search for 'kernel-source', make sure you do "search in names". Select and click install...

If the package kernel-source doesn't show up it is probably because you don't have the necesarry installation cds. You should have three. If you obtain the extra cds at a later point you can tell mandrake to look for rpm's in these by clicking "Software media manager" and add the appropriate cds...

good luck, kamstrup

Last edited by kamstrup; 09-05-2003 at 09:11 AM.
 
Old 09-05-2003, 09:38 AM   #5
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
Thanks for the quick reply kamstrup I only downloaded the first and second CD iso's. My ISP connection speed is limited and it takes me 15 hours per 650MB iso file. I did a search on these two CD's and couldn't find any kernel-source* file. I was under the impression that the third CD was for international languages only and that if I needed additional packages, that I could get it on-line.

1) Do I need to get the third CD?
2) Is there a way to add an FTP server to "Software media manager" so that it looks there?

All this effort just to install nVidia drivers.

Thanks again, Olias
 
Old 09-05-2003, 11:26 AM   #6
Flatredline
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.1, Debian Sarge
Posts: 20

Rep: Reputation: 0
You could go to THIS SITE and download the package you need; you could also add the site as a software source in the Control Center.
 
Old 09-05-2003, 03:38 PM   #7
baud
Member
 
Registered: Aug 2003
Location: Versailles
Distribution: Mandrakecooker 10.1
Posts: 67

Rep: Reputation: 15
well, kernel-source is on the 3rd cd...
go for the source on an ftp mirror, it will require gcc and glib that are on 2nd cd I think
With 9.2rc1 and latest nVidia (4496) you'll see that the blinking at disconnect / in console mode (ctrl-alt-F1) disappears... don't worry, it comes back as soon as you define a new resolution....
 
Old 09-05-2003, 09:04 PM   #8
kamstrup
Member
 
Registered: Aug 2003
Location: Aarhus, Denmark
Distribution: Slackware, Ubuntu
Posts: 122

Rep: Reputation: 15
This is something that have been bothering me for a while...

I actually think that kernel-source should be a default selection when installing any kind of linux. MANY drivers or non-standard programs requires compilation for your specific kernel.
I have been hacking about linux a few years now, and tried all the new redhat and mandrake distros and have almost always needed kernel-sources at some stage...

Many driver-problems and other similar compilation problems would be solved if kernel-source was installed by default.

A newbie friendly installation of -whatever- would then compile (or just install) the driver without much more user info than :

"Installing package ... Kernel version not supported, recompiling XYZ.sumtin. Installing... [OK]"

-- and this is really the kind of user-friendlyness I hope that linux will some day attain ( - it almost has).

greetings, kamstrup

PS: The nVidia graphics drivers actually does support this kind of installation. Hurra for nVidia, that's just brilliant.
 
Old 09-05-2003, 11:04 PM   #9
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
Thanks for the ftp link I tried to add it to the Software Media Manager as an FTP server medium but no matter what I entered, as soon as I click OK, it crashes without any errors. I installed gcc and glib without any problems... thanks for the tip.

I'm downloading the kernel-source file to my /home directory now but where does it need to be so that I can RPM it? Would I just open a console and enter...

urpmi /home/olias/kernel-source-2.4.22-1mdk.i586.rpm

...and it will install it in /usr/src/linux? I'm also aware of the need for a softlink 'linux ---> kernel-source-whatever' in the /usr/src directory.

Am I on the right track now? Thanks, Olias
 
Old 09-05-2003, 11:42 PM   #10
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
Talking

I got it !!! Go figure, I just double clicked on the RPM and gave a root password. The rest was easy. Now glxgears=2400+ FPS. Thank you all... Olias
 
Old 11-04-2003, 06:49 AM   #11
schismatic
LQ Newbie
 
Registered: Nov 2003
Location: UK
Distribution: Mandrake 9.2
Posts: 12

Rep: Reputation: 0
olias, how did you solve this problem? i am trying to install my modem. have the drivers (Intel-v92ham-453.tar.gz). installation requires 3 things to be done........make clean, make ham and make install. make clean works fine, but when i do make ham, i get the error message saying that the kernel sources are not installed. i too do not have usr/src/linux folder, only an RPM folder is in the /usr/src/ folder.

i am currently running kernel version 2.4.22-1mdk, and am downloading kernel-source-2.4.22-1mdk.i586.rpm from the ftp site given above. when this download is finished, what should i do to install the sources? will they go to /usr/src/linux?? i am pretty sure i will need something in /lin/modules/2.4.22-1mdk/ too..........any ideas???
 
Old 11-04-2003, 05:46 PM   #12
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
The rpm takes care of where everything goes as well as any dependencies and the symlink. All you do is double clicked on the RPM file and gave a root password.
 
Old 11-05-2003, 10:19 AM   #13
schismatic
LQ Newbie
 
Registered: Nov 2003
Location: UK
Distribution: Mandrake 9.2
Posts: 12

Rep: Reputation: 0
cheers mate, much appreciated.
 
Old 11-05-2003, 10:39 AM   #14
Lostman
Member
 
Registered: Nov 2003
Location: Chicago, IL
Posts: 239

Rep: Reputation: 30
Quote:
Originally posted by olias
Thanks for the ftp link I tried to add it to the Software Media Manager as an FTP server medium but no matter what I entered, as soon as I click OK, it crashes without any errors. I installed gcc and glib without any problems... thanks for the tip.

Can someone tell me how this works? How do I add an ftp link to that? Right now mine only checks disks. Is there a file I need to edit? Is there a page with links that I can add to this?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 06:30 AM
How to tell up2date to start getting sources when not initially installed ericcarlson Fedora 12 08-07-2004 12:11 PM
What to backup when going from 9.2rc1 --> 9.2? Chuk Mandriva 2 11-17-2003 12:07 AM
Mandrake 9.2RC1 bug or not? barrys Mandriva 11 09-08-2003 04:46 PM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration