LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot find kernel version in /usr/src/linux-2.6.21.5, is it configured? (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-find-kernel-version-in-usr-src-linux-2-6-21-5-is-it-configured-851623/)

t0rtr3ss 12-21-2010 12:06 PM

Cannot find kernel version in /usr/src/linux-2.6.21.5, is it configured?
 
I'm currently trying to get my wireless card to work with ndiswrapper after installing backtrack4 today, BUT....... When I try and use the make command it tells me that some or another file is missing. I've checked and the output is right, There is no file of that name but there is neither a folder of that name.

Code:

root@bt:/usr/src/ndiswrapper-1.56/ndiswrapper-1.56# make
make -C driver
make[1]: Entering directory `/usr/src/ndiswrapper-1.56/ndiswrapper-1.56/driver'
Makefile:34: *** Cannot find kernel version in /usr/src/linux, is it configured?.  Stop.
make[1]: Leaving directory `/usr/src/ndiswrapper-1.56/ndiswrapper-1.56/driver'
make: *** [all] Error 2

Should there be a folder in /usr/src/ called linux? I only have one called "/usr/src/linux-source-2.6.35.8".

Any help would be much appreciated.

Thanks,

T0rtr3ss

tsg 12-21-2010 12:16 PM

/usr/src/linux is usually a symlink to the current kernel version source.

t0rtr3ss 12-21-2010 12:48 PM

Hey Thanks for the reply. Unfortunately I have no idea what means or what that means the implications are?

EDDY1 12-21-2010 12:59 PM

go to package manager right click ndiswrapper source to check dependencies.
Let packagemanager do as much of the work as possible unless you have more than 1 machine.

tsg 12-21-2010 01:08 PM

"Symlink" is short for "symbolic link." In linux it's possible to create another handle to a file or directory by creating a symlink. If you type

Code:

ln -s /usr/src/linux-source-2.6.35.8 /usr/src/linux
as root, it will create a symbolic link from /usr/src/linux to /usr/src/linux-source-2.6.35.8 and the code should compile correctly.

The /usr/src/linux symlink is a convenience so the compiler can get to the linux source headers without having to know what version of the kernel is running. A symlink is analogous to a shortcut in Windows, except that it works correctly ;).

t0rtr3ss 12-22-2010 03:41 AM

Thank you, When I finish work I'm gonna go home and set that up and hopefully get it all working.


All times are GMT -5. The time now is 10:58 AM.