LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ndiswrapper driver error, Debian (https://www.linuxquestions.org/questions/linux-newbie-8/ndiswrapper-driver-error-debian-4175437032/)

Poofums 11-13-2012 11:02 PM

ndiswrapper driver error, Debian
 
Hey everyone! Been refraining from making any sort of help post for the last couple of days opting to research into my issue and solve it myself, but after not finding a solution specific to my issue, I figured it wouldn't hurt to ask.

I have recently installed Debian 6 on my desktop and the first issue I've ran into is getting my wireless usb stick to work. (NetGear N300 WNA3100... not important though) With no internet connection at all, I've needed to do a lot of things manually and figured out I need ndiswrapper to get it working. I got the tar, unzipped it and have followed the INSTALL directions but this is when I run into the issue.

When using make to compile ndiswrapper I receive an error, the output is,

Code:

make -C utils
make[1]: Entering directory `/home/poofy/ndiswrapper-1.57/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/poofy/ndiswrapper-1.57/utils'
make -C driver
make[1]: Entering directory `/home/poofy/ndiswrapper-1.57/driver'
make[1]: Leaving directory `/home/poofy/ndiswrapper-1.57/driver'


Makefile:36: *** Cannot find kernel version in /lib/modules/2.6.32-5-amd64/build, is it configured?.  Stop.
make: *** [driver] Error 2

A couple solutions I've read up on that I am incapable of doing... the Debian CD I made does not come with ndiswrapper on it's pool and I do not have an internet connection whatsoever on this desktop. I have a separate computer connected to the internet and everything has to be done via usb drive until I'm able to get this resolved.

While reading the INSTALL file it states,

Code:

Make sure there is a link to the kernel source from the modules
directory. The command

  ls /lib/modules/`uname -r`/build

should have at least 'include' directory and '.config' file.

I do not have a build folder let alone a .config file. What I do have is kernel, modules.dep, modules.order, modules.symbols.bin, modules.alias, modules.dep.bin, modules.softdep, modules.alias.bin, modules.devname and modules.symbols. Am I missing something to be able to run the make command? I've been completely stumped at this point and can't seem to move forward with it at all. Though I doubt it, is it possible I'm missing other things to perform this given that I spent my first half of this time realizing I needed to install build-essentials just to get this started? Either the iso of Debian I got is very barebones, or I'm assuming it's very barebones by nature.

Sorry if I went overly detailed. I've been refraining from resorting to posting in the first place but if I was going to I didn't want to be "that guy" and wanted to include anything I could while I still have little clue what I'm doing. Any help would be much appreciated.

Poofums 11-14-2012 01:40 AM

Well now, I guess I solved this myself. After reading one thing after another after another, it seemed like I was missing kernel headers and they were never installed. Followed this on installing them;

http://go2linux.garron.me/linux/2010...-or-ubuntu-861

And now everything's working fine. Thanks for anyone who took a look at this and sorry again for my arrogance.

jefro 11-14-2012 02:51 PM

Thanks for joining and asking and for answering you own post! :)

You are encouraged to ask any question related to linux. Everyone needs help once in a while and it is the proper thing to do.


All times are GMT -5. The time now is 11:46 AM.