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! |
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 |
Quote:
Is that what you mean by Make certain your kernel headers are installed? |
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. |