LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [Mandriva] Kernel Headers -- Why am I missing the "build" folder? (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bmandriva%5D-kernel-headers-why-am-i-missing-the-build-folder-688930/)

nyle 12-07-2008 12:03 PM

[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

Woodypecker 12-07-2008 01:28 PM

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.

knudfl 12-07-2008 02:04 PM

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.
....

nyle 12-07-2008 04:42 PM

Quote:

Originally Posted by knudfl (Post 3367366)
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!


All times are GMT -5. The time now is 06:25 PM.