LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-05-2005, 06:31 PM   #1
JyushinX
Member
 
Registered: Oct 2003
Posts: 36

Rep: Reputation: 15
Kernel Source There But Not There


Hi,

So I'm trying to install Nvidia's latest Nforce drivers on Linux Mandriva LE2005 x86_64. I get an error message stating that it cannot find the path to the kernel source. So I take a look in /usr/src. There is no linux directory, just one called RPM. When I navigate into this RPM directory and attempt to run the kernel-source rpm, I get the message that it is already installed. But if it's not in /usr/src, then where is it?

Thanks.
 
Old 08-05-2005, 06:43 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
Have you tried

updatedb
locate linux

HTH,

Samsara
.
 
Old 08-05-2005, 07:08 PM   #3
JyushinX
Member
 
Registered: Oct 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Am I supposed to enter those at the command prompt?

Because if so, both updatedb and locate linux return "command not found".

?
 
Old 08-11-2005, 02:58 AM   #4
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
Yes, at the command prompt.

You may have slocate and slocate.updatedb (or slocate -u) - you can always search for such tools in the directories /usr/bin and /usr/sbin (and very rarely can they be in /sbin).

You can always try, e.g. "man slocate" to see if they're installed on your system. Usually if the tools aren't there, the manpage won't be. Your distro may also have a way of searching for files in your installed packages. In the jargon, you want to know what "owns" the file. Most distros also allow searching for files that aren't installed; that will tell you what package you need.

locate is basically making "find" faster. Ordinarily, you could get the same results by doing a

find / | grep file_you_want

but that looks at every file in its physical location every time you run it (well, depending on what filesystem you use, but that's a technical point). locate or slocate, instead, search a database that you can create with updatedb. This means you do a full "find /" only when you create the database - all subsequent searches are much, much faster - usually instantaneous.

HTH,

Samsara
.
 
Old 08-11-2005, 05:36 AM   #5
Wistoka
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
Well you can use rpm to look for the files of an installed package, just type "rpm -qa|grep kernel", look at the name of the kernel-sources package(let call it foo) and then type "rpm -ql foo" and it will display all the files of tha package,and of course its path. Locate, find and all that commands are valid too of course!!
 
  


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
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
how to integrate driver source into kernel source tree zhchang Linux - Software 5 11-23-2005 12:34 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM

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

All times are GMT -5. The time now is 04:57 AM.

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