Fedora This forum is for the discussion of the Fedora Project. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-09-2004, 02:15 PM
|
#1
|
Member
Registered: Jun 2003
Location: Aero-nomadic
Distribution: Debian (etch, PPC)
Posts: 80
Rep:
|
Nvidia Driver can't find kernel source
I was trying to install the Nvidia driver on my computer using these instructions, but when I got into the installer and accepted the agreement, it said that it couldn't find a "precompiled kernel interface". I installed the kernel sources for my kernel. Could it be that it is looking in the wrong path? if so, how do I change the path it is looking in?
here is my nvidia-installer.log:
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Apr 9 14:05:08 2004
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com
Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel source
files are installed, you may specify the kernel source path with the
'--kernel-source-path' commandline option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
|
|
|
04-09-2004, 03:29 PM
|
#2
|
Member
Registered: Feb 2004
Location: Denmark
Distribution: Gentoo
Posts: 136
Rep:
|
You kernel sources are probably installed in /usr/src/linux-<kernel-version>.
Creating a symbolic link to i called linux should solve it, e.g:
/usr/src$ ln -s linux-2.6.3 linux
|
|
|
04-10-2004, 12:46 PM
|
#3
|
Member
Registered: Jun 2003
Location: Aero-nomadic
Distribution: Debian (etch, PPC)
Posts: 80
Original Poster
Rep:
|
I did that just now and I'm still getting the same error. Is there some sort of way to tell it where the source code is?
I'm pretty sure I got the right source for my kernal, but I could double check.
|
|
|
04-13-2004, 08:49 AM
|
#4
|
LQ Newbie
Registered: Apr 2004
Posts: 1
Rep:
|
nvidia driver installation problems
i have installed pcq linux 2004 which is a linux distro based on fedora 1.
i tried to install nvidia video drivers but i got the error message that a pre compiled kernel interface was not found.please help
Last edited by gbhuvanesh; 10-12-2010 at 09:15 AM.
Reason: removing email id
|
|
|
04-13-2004, 05:49 PM
|
#5
|
Member
Registered: Sep 2003
Location: Ca
Distribution: Fedora, RH 7.1-9.0
Posts: 68
Rep:
|
The precompiled interface is not a problem, simply following the prompt and let the installer compile one for your system (you will need to have the kernel sources installed).
As for the above issue with the kernel sources...
The typical sources setup for Fedora (Red Hat as well, naturally) is to have the sources installed to /usr/src/linux-<kernelversion> (where the <kernelversion> part would be replaced by the output of uname -r). The symlink mentioned (/usr/src/linux) should be there but is not crucial. The one that is crucial is found in the /lib/modules directory for the running (or compilation target) kernel.
You should find that the 'target' of the symlink /lib/modules/<kernelversion>/build points to the correct kernel sources tree, in this case /usr/src/linux-<kernelversion>.
As a specific example:
/lib/modules/2.6.4-1.305/build -> /usr/src/linux-2.6.4-1.305
The kernel-source rpm should have taken care of this for you.. so it is possible you have the wrong source rpm installed. What is the output (the complete output) of rpm -q kernel kernel-source?
Last edited by LordMorgul; 04-13-2004 at 05:51 PM.
|
|
|
04-18-2004, 02:27 PM
|
#6
|
Member
Registered: Jun 2003
Location: Aero-nomadic
Distribution: Debian (etch, PPC)
Posts: 80
Original Poster
Rep:
|
kernel-2.4.22-1.2115.nptl
kernel-2.4.22-1.2174.nptl
kernel-source-2.4.22-1.2174.nptl_37.rhfc1.at
I am using kernel-2.4.22-1.2115.nptl I think. That's the option I select at startup in GRUB.
Last edited by Forezt; 04-18-2004 at 02:49 PM.
|
|
|
04-20-2004, 05:54 AM
|
#8
|
LQ Newbie
Registered: Feb 2004
Location: Beautiful Greenville, SC
Distribution: Fedora Core 1 (finally)
Posts: 18
Rep:
|
otoh Livna is back up with a mirror and you can use yum to get a pre-compiled nvidia rpm for your kernel version.
See http://livna.cat.pdx.edu/ for info.
|
|
|
04-20-2004, 04:52 PM
|
#9
|
Member
Registered: Jun 2003
Location: Aero-nomadic
Distribution: Debian (etch, PPC)
Posts: 80
Original Poster
Rep:
|
When I try to remove my current kernel-source package, it says:
Code:
[root@localhost root]# rpm -e kernel-source
warning: cannot get shared lock on /var/lib/rpm/Packages
|
|
|
04-20-2004, 07:35 PM
|
#10
|
Member
Registered: Sep 2003
Location: Ca
Distribution: Fedora, RH 7.1-9.0
Posts: 68
Rep:
|
This is an indication that you have another rpm process running (or yum / apt, which are using librpm). If you do not.. and you are certain of this then you may need to remove old, stale, lock files in /var/lock/rpm.
Last edited by LordMorgul; 04-20-2004 at 07:37 PM.
|
|
|
All times are GMT -5. The time now is 09:48 PM.
|
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
|
|