Prerequisites as listed in the install.txt of the ndiswrapper-1.58.tar.gz
You need a recent kernel, at least 2.6.14, with header files for the kernel. Make sure there is a link in the kernel source from the modules directory.
This is what I get:
Code:
knoppix@Microknoppix:~$ ls /lib/modules/`uname -r`/build
arch firmware Kconfig mm security
block fs kernel Module.symvers sound
crypto include lib net tools
debian init linux-headers.revision samples usr
drivers ipc Makefile scripts virt
knoppix@Microknoppix:~$ cd ~knoppix/ndiswrapper-1.58
knoppix@Microknoppix:~/ndiswrapper-1.58$ make uninstall
rm -f /usr/share/man/man8/ndiswrapper.8
rm -f /usr/share/man/man8/loadndisdriver.8
make -C driver uninstall
make[1]: Entering directory `/home/knoppix/ndiswrapper-1.58/driver'
rm -f /lib/modules/3.6.11/misc/ndiswrapper.ko
/sbin/depmod -a 3.6.11
ERROR: openat(/lib/modules/3.6.11, modules.dep.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.dep.bin.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.alias.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.alias.bin.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.softdep.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.symbols.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.symbols.bin.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.builtin.bin.tmp, 1101, 644): Permission denied
ERROR: openat(/lib/modules/3.6.11, modules.devname.tmp, 1101, 644): Permission denied
make[1]: Leaving directory `/home/knoppix/ndiswrapper-1.58/driver'
make -C utils uninstall
make[1]: Entering directory `/home/knoppix/ndiswrapper-1.58/utils'
rm -f /sbin/loadndisdriver
rm -f /usr/sbin/ndiswrapper
rm -f /usr/sbin/ndiswrapper-buginfo
make[1]: Leaving directory `/home/knoppix/ndiswrapper-1.58/utils'
knoppix@Microknoppix:~/ndiswrapper-1.58$