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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-14-2006, 11:23 AM
|
#1
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Rep:
|
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?
|
|
|
|
09-14-2006, 01:34 PM
|
#2
|
|
LQ Newbie
Registered: Jul 2006
Posts: 17
Rep:
|
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.
|
|
|
|
09-15-2006, 09:46 AM
|
#3
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Original Poster
Rep:
|
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)?
|
|
|
|
09-16-2006, 07:26 PM
|
#4
|
|
LQ Newbie
Registered: May 2006
Distribution: Archlinux, LFS 6.2
Posts: 20
Rep:
|
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.
|
|
|
|
09-16-2006, 11:59 PM
|
#5
|
|
Member
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Rep:
|
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.
|
|
|
|
09-17-2006, 03:05 AM
|
#6
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Original Poster
Rep:
|
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.
|
|
|
|
09-18-2006, 11:45 PM
|
#7
|
|
Member
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:43 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|