Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I cannot get past this error when trying to run "make" on the driver source. *** Cannot detect kernel version - please check compiler and KERNELPATH. Stop.

Does anyone know the procedure for installing madwifi drivers on Ubuntu 11.10?


I have all the necessary packages installed including the linux headers and have also tried specifying the "KERNELPATH" manually.

share|improve this question

migrated from Oct 15 '11 at 17:40

This question came from our site for computer enthusiasts and power users.

Just install module-assistant and choose the madwifi from the module assistant list, this will allow you to download, compile and install the modules.

share|improve this answer
madwifi drivers are not in the repository so it doesn't work and yes I enabled the 3rd party sources. – Arctor Oct 14 '11 at 13:06
Ok here is a link to a tutorial for debian, i guess you should make it work or add debian repository to your sources.lst. – v01d Oct 14 '11 at 13:10
tried adding those repositories and 10.04 repositories and it doesn't work... would prefer not to install a driver compiled for an older version anyways. – Arctor Oct 14 '11 at 13:34
you can try downloading the latest source from the madwifi site and than try to install it with module assistant. – v01d Oct 14 '11 at 13:36
not sure how I would instruct module-assistant to use the downloaded source... it says it makes and installs "debianized" source in the man file. – Arctor Oct 14 '11 at 16:30
up vote 0 down vote accepted

Used svn for the newest release and received no issues when compiling or installing.

share|improve this answer
Google search turned up questions about the same error with no resolution. – Arctor Oct 15 '11 at 20:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.