LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 09-14-2006, 11:23 AM   #1
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
nVidia driver asks for headers


I am trying to install nVidia drivers for my old TNT2 Vanta.
I downloaded the driver package for legacy devices - it turned to be "NVIDIA-Linux-x86-1.0-7184-pkg1.run". I exited X, switched to "init 3", ran the installer, but it says the source is not configured properly (definitely not true).The log file saysa the installer was actually looking for non-existent ".h" files in the kernel source directory (which are linux kernel headers, aren't they?).
Does it mean that I need linux kernel headers?
If so, where do I get them from?
 
Old 09-14-2006, 01:34 PM   #2
mpajoh
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Rep: Reputation: 0
You can get the headers the same place you get/got the kernel itself.
I use yumex to find it on Fedora.
for that matter you could, tht is what I do, get the kmod-nvidia-####.rpm for the kernel you are using and install it.
 
Old 09-15-2006, 09:46 AM   #3
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Original Poster
Rep: Reputation: 30
Hm, ... well ... yeah, I can get into fedora, but...
Ain't it the LFS forum, after all? There's no fun getting the kernel-source-***.rpm, kernel-headers-***.rpm (or whatever it's called) and build this kernel under Fedora.
Question: Is there something like "native" linux headers? If so, where can one find them? If not, how one installs nVidia drivers under LFS (some guys did it, right)?
 
Old 09-16-2006, 07:26 PM   #4
Axalon
LQ Newbie
 
Registered: May 2006
Distribution: Archlinux, LFS 6.2
Posts: 20

Rep: Reputation: 0
did you keep the kernel source from when you compiled the kernel? If you didn't, redownload the linux kernel source, unpack it in /usr/src, and recompile the kernel. For some reason, kernel modules need to have the files created during compilation to be in the source tree, so recompiling is necessary for the source to be of any use.

Hope this helps.

Last edited by Axalon; 09-16-2006 at 07:27 PM.
 
Old 09-16-2006, 11:59 PM   #5
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 30
Once you have the source and have recompiled you may need to use the --kernel-source-path to help the installer find it.

For me:
Code:
sh NVIDIA-Linux-x86-1.0-8762-pkg1.run --kernel-source-path=/sources/linux-2.6.17.13/
By default the installer will look for it in
1st. /lib/modules/`uname -r`/build (?)
and then
2nd. /usr/src/linux
the book tells you not to create this particular symlink (can't remember why)

Anyway hope you get it sorted.
 
Old 09-17-2006, 03:05 AM   #6
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Original Poster
Rep: Reputation: 30
Just to be sure...
Recompile the kernel? Does it mean going through
Code:
make distclean
make mrproper
make oldconfig
make all
?
If I understand correctly, after doing this I get the ".h" files that nVidia installer is looking for?
Shall I actually install anything (the kernel and the modules)?

Last edited by Vitalie Ciubotaru; 09-17-2006 at 03:06 AM.
 
Old 09-18-2006, 11:45 PM   #7
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Original Poster
Rep: Reputation: 30
Yeah, I did it!
Thank you very much for your advice, Axalon and Daws -- it was really helpful. Actually I wouldn't have suceeded without your advice
Quote:
For some reason, kernel modules need to have the files created during compilation to be in the source tree
and
Quote:
use the --kernel-source-path to help the installer find it
This is the second time I get an "insolveble" problem solved rapidly and easily.
P.S.: Probably I have to start repaying the debts (advicing back)

Last edited by Vitalie Ciubotaru; 09-18-2006 at 11:48 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
INstalling Kernel Headers to update nvidia driver plbowler Mandriva 5 09-14-2006 11:10 AM
nVidia, kernel headers, etc jrcreasy Debian 23 08-20-2005 05:10 PM
rpm install: A asks for B, B asks for A mike_bio Linux - Software 6 07-15-2005 04:00 AM
Running yum asks for "sysadmin to update headers" Equisilus Fedora 0 06-25-2004 04:52 PM
nVidia Driver won't install because Kernel Headers are missing...Whats that me then? Stevetgn Linux - Newbie 3 08-24-2003 08:27 PM


All times are GMT -5. The time now is 11:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration