LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-07-2008, 01:03 PM   #1
nyle
Member
 
Registered: Feb 2008
Location: Atlanta
Distribution: Ubuntu 9.10
Posts: 42

Rep: Reputation: 17
[SOLVED] Mandriva Kernel Headers -- Why am I missing the "build" folder?


I'm following the instructions here to try to get my wireless card working. I am at the part where it says:

Quote:
Please be very sure you have your kernel headers installed before reporting any sort of build issues with this package. This usually will mean having this symlink point to a valid directory with kernel headers in it:

/lib/modules/`uname -r`/build
Problem is, /lib/modules/`uname -r`/ is a valid directory but there does not seem to be a "build" folder within it. Hence "make" for this software fails.

The package installer (and urpmi) both assert that the kernel headers are already installed.

How do I get this "build" folder installed (or is it located somewhere else)? "find / -name build" only returns a single unrelated entry. I'm using Mandriva 2009.0.

Thanks

Last edited by nyle; 12-07-2008 at 05:42 PM. Reason: Problem solved.
 
Old 12-07-2008, 02:28 PM   #2
Woodypecker
Member
 
Registered: Mar 2006
Location: Austria
Distribution: Mandriva/Debian
Posts: 102

Rep: Reputation: 17
You have to at least run configure or "make prepare" once. The "build" within the modules directory is just a symlink pointing to the matching kernel source directory.
 
Old 12-07-2008, 03:04 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,271

Rep: Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662Reputation: 2662
The '/lib/modules/2.6.27-desktop586-1mnb/build' link will appear
after installing 'kernel-desktop586-devel-2.6.27.4-1mnb'
( as an example from my Mandriva 2009.0 )

There was no devel package for the default installed, which was 'kernel-desktop586-2.6.27-0.rc8.2mnb' so I had to start finding
a kernel in the package manager, the above is a random choice.
...And it worked.

( Should probably have been -2mnb, is already set for update )

Using # ' urpmi kernel-devel-`uname -r` ' or
'urpmi kernel-desktop586-devel-`uname -r` doesn't seem to work,
because the order of words is odd.
....

Last edited by knudfl; 12-07-2008 at 03:36 PM.
 
Old 12-07-2008, 05:42 PM   #4
nyle
Member
 
Registered: Feb 2008
Location: Atlanta
Distribution: Ubuntu 9.10
Posts: 42

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by knudfl View Post
The '/lib/modules/2.6.27-desktop586-1mnb/build' link will appear
after installing 'kernel-desktop586-devel-2.6.27.4-1mnb'
( as an example from my Mandriva 2009.0 )

There was no devel package for the default installed, which was 'kernel-desktop586-2.6.27-0.rc8.2mnb' so I had to start finding
a kernel in the package manager, the above is a random choice.
...And it worked.

( Should probably have been -2mnb, is already set for update )

Using # ' urpmi kernel-devel-`uname -r` ' or
'urpmi kernel-desktop586-devel-`uname -r` doesn't seem to work,
because the order of words is odd.
....
Nailed it.

"urpmi kernel-devel" gave me a list of 3 options, 1 of which matched my kernel. I installed that one and a "build" symlink was put into the /lib/modules/`uname -r`/ directory. I am compiling the program successfully now.

Thanks!
 
  


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
Superkaramba won't compile in Slack 12.1- "missing python headers and libraries" maniac matt Slackware 2 05-11-2008 01:42 AM
"make headers_check" gives errors during "5.5.1 Installation of Linux API headers " void_man() Linux From Scratch 3 09-26-2007 10:16 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
Am I missing some stuff in /build/ ? Kernel Headers?!?!? yttrium88 Linux - Newbie 1 10-28-2006 09:40 PM
"modules shouldn't use kernel headers . . ." cyberclaus Linux - Software 8 10-08-2001 01:20 AM


All times are GMT -5. The time now is 11:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration