LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Kernel source (https://www.linuxquestions.org/questions/ubuntu-63/kernel-source-405231/)

vital_101 01-18-2006 11:36 PM

Kernel source
 
I've recently been trying to use ndiswrapper to make my wireless card work. However, I can't 'make' the program because I can't use the kernel source. I have installed the kernel-source package in synaptic and the kernel package. Upon making, this is the error I get:
Code:

make[1]: Entering directory `/home/jack/ndiswrapper-1.8/driver'
Can't find kernel sources in /lib/modules/2.6.12-9-amd64-generic/build;
  give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/jack/ndiswrapper-1.8/driver'
make: *** [all] Error 2

Any help on what I need to install would be great.

Thanks,
Vital_101

murffatksig 01-19-2006 03:49 PM

I believe /lib/modules/2.6.12-9-amd64-generic/build is a link to /usr/src/<kernel version> or some folder in there. Check to make sure that links to the right place.

bulliver 01-19-2006 03:50 PM

Where is your source? /usr/src/linux? If so then just try:
Code:

# make KSRC=/usr/src/linux/
However, I don't think this will work unless the source is for the kernel you are currently running, which is why ndiswrapper is looking for "/lib/modules/2.6.12-9-amd64-generic/build", usually a symlink to the current sources.

Doesn't Ubuntu have a package for ndiswrapper?

vital_101 01-19-2006 05:18 PM

Good point. I'm not sure why it won't make, but I'll see if Ubuntu has a ndiswrapper package. If they do, maybe that could make my life a bit easier. Thanks for the idea.


All times are GMT -5. The time now is 06:07 AM.