LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 12: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 04:42 PM. Reason: Problem solved.
 
Old 12-07-2008, 01:28 PM   #2
Woodypecker
Member
 
Registered: Mar 2006
Location: Austria
Distribution: Mandriva/Debian
Posts: 104

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, 02:04 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 02:36 PM.
 
Old 12-07-2008, 04: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



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 12: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 09:16 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Am I missing some stuff in /build/ ? Kernel Headers?!?!? yttrium88 Linux - Newbie 1 10-28-2006 08:40 PM
"modules shouldn't use kernel headers . . ." cyberclaus Linux - Software 8 10-08-2001 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 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