LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Make command error in openSuse 10.2 (https://www.linuxquestions.org/questions/suse-opensuse-60/make-command-error-in-opensuse-10-2-a-553299/)

bman22 05-11-2007 11:45 PM

Make command error in openSuse 10.2
 
I am trying to compile the MADWIFI drivers in openSusE and it is telling me that /lib/modules/2.6.18.2-34-default/build/.config is missing and then stops. It then tells me to edit the makefile.inc and put in the correct destination of my kernels .config file. Does anyone know where this is in kernel ver. 2.6.18.2-34?

Any help would be greatly appriciated as i am attempting to set up a server without an internet connection right now!

samstar 05-12-2007 12:13 AM

Hi,

First, in the Yast package manager, make certain that your kernel headers are installed.

Go to the /boot directory. There'll be a file called config-2.6.18.2-34 or something like it. As root, copy that to your kernel source directory as .config (usually '/usr/src/linux', it's the same as '/lib/modules/2.6.18.2-34-default/build/').

Then, also as root, go to the source directory and prepare the source for the new module. Use the command "make modules_prepare".

Now go back to your madwifi install. If there's another error, let us know.

Sam

rosco99 07-03-2007 08:06 PM

Quote:

Originally Posted by samstar
Hi,

First, in the Yast package manager, make certain that your kernel headers are installed.

Go to the /boot directory. There'll be a file called config-2.6.18.2-34 or something like it. As root, copy that to your kernel source directory as .config (usually '/usr/src/linux', it's the same as '/lib/modules/2.6.18.2-34-default/build/').

Then, also as root, go to the source directory and prepare the source for the new module. Use the command "make modules_prepare".

Now go back to your madwifi install. If there's another error, let us know.

Sam

Do you mean "copy file" as config-2.6.18.2-34.config?
Is that what you mean by Make certain your kernel headers are installed?

samstar 07-04-2007 02:57 PM

Hi there,

To clarify, the config file I told you to copy is not kernel headers. The file represents the default configuration of your distribution's kernel. Don't worry about copying it yet unless you get further errors.

Also, to clarify further, the directory you mentioned (/lib/modules/2.6.18.2-34-default/build/) is a link to your kernel source files, located in /usr/src/linux.

At the minimum, you should have the 'kernel-headers' package installed if you want to compile drivers (modules) for your system. If that's not enough, you can also install the package 'kernel-sources'. Then try compiling your madwifi modules again.

If it still gives an error, and asks for your '.config' file, just copy your '/boot/config-2.6.18.2-34.config' to '/usr/src/linux/.config'.

Tell us if you still have problems,
Sam


All times are GMT -5. The time now is 12:17 PM.