LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2010, 01:06 PM   #1
t0rtr3ss
LQ Newbie
 
Registered: Dec 2010
Posts: 9

Rep: Reputation: 0
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
 
Old 12-21-2010, 01:16 PM   #2
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
/usr/src/linux is usually a symlink to the current kernel version source.
 
Old 12-21-2010, 01:48 PM   #3
t0rtr3ss
LQ Newbie
 
Registered: Dec 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Hey Thanks for the reply. Unfortunately I have no idea what means or what that means the implications are?
 
Old 12-21-2010, 01:59 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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.
 
Old 12-21-2010, 02:08 PM   #5
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
"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 .
 
1 members found this post helpful.
Old 12-22-2010, 04:41 AM   #6
t0rtr3ss
LQ Newbie
 
Registered: Dec 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you, When I finish work I'm gonna go home and set that up and hopefully get it all working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find kernel version in /usr/src/linux-2.6.21.5, is it configured? evelasco Linux - Newbie 3 07-04-2010 04:52 PM
can't find usr/src/linux folder r00k2oo4 SUSE / openSUSE 2 10-19-2004 02:35 PM
I can't find my usr/src/linux folder r00k2oo4 Linux - Newbie 4 10-19-2004 10:42 AM
can't find /usr/src/linux/2.4.20-30.9 daniel31 Red Hat 8 03-02-2004 03:18 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 04:24 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration