LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   missing /build in my kernel version dir so i can't install madwifi (https://www.linuxquestions.org/questions/linux-newbie-8/missing-build-in-my-kernel-version-dir-so-i-cant-install-madwifi-594854/)

Learath 10-26-2007 02:23 PM

missing /build in my kernel version dir so i can't install madwifi
 
Hi,
I have a problem with the madwifi 0.9.3.3.
I don't have the required directory (/build) in my kernel directory so I'm not able to use the command the make command, it does just return:

/bin/sh: line 0: cd: /lib/modules/2.6.22-2-amd64/build: the file or directory don't exist.
Makefile.inc:66: *** /lib/modules/2.6.22-2-amd64/build is mising please set KERNELPATH. Stopping

I can't find any other kernelpath with a /build in it.

I'm running Debian 4.0 with Gnome the kernel is 2.6.22-2-amd64.

Can anyone help me with this problem?

farslayer 10-26-2007 02:43 PM

aptitude update
aptitude keep-all
aptitude install build-essential module-assistant
m-a update
m-a prepare


That will download and install the essential build environment, all the proper headers, etc. for your running kernel. you should have no trouble compiling your driver module after that.

then try your make command again..

Alternately you could just continue with module-assistant to build and install your madwifi driver module.

m-a a-i madwifi

Which will grab the madwifi source, compile the module, and install it in it's proper place..

m-a = module-assistant
a-i = auto-install
just in case you wondered what those short commands stood for..

Learath 10-26-2007 05:21 PM

Thanks for the quick response!

My wireless card works fine now.


All times are GMT -5. The time now is 12:48 AM.