LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-04-2010, 04:07 PM   #1
doublemac
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0
Problem installing ndiswrapper as the kernel version cannot be located.


I am trying to install ndiswrapper, and have gotten as far as extracting the .gz file. However, when I type in the "make" command, it returns the error message:

Cannot find kernel version in /usr/src/linux-2.6.21.5, is it configured? Stop.

I do not have anything in the folder /usr/src, so I don't know where it might be. I'd like to install this, so it will make my switch to Linux easier. Help is much appreciated,
 
Old 07-04-2010, 04:50 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,319

Rep: Reputation: 140Reputation: 140
You need to install your kernel source code to compile kernel modules like ndiswrapper. That's what it is complaining about - you haven't installed your kernel source code. Post what distro you are using. Most distros have a kernel source package available that you can install but it's generally not installed by default. Also post the output of:

$ uname -a

That will list the kernel you are running which will help in identifying the correct kernel source package.
 
Old 07-05-2010, 01:52 PM   #3
doublemac
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks a lot for responding. I am not sure what the "distro" is, but if you could tell me how to find it I will let you know. However, the output for $ uname -a is:

Linux bt 2.6.21.5 #4 SMP Thu Apr 10 04:23:56 GMT 2008 i686 Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33 GHz GenuineIntel GNU/Linux

Again, I'm very grateful to you for getting back to me, and I hope you can help me resolve this. Thank you.
 
Old 07-05-2010, 04:21 PM   #4
doublemac
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
OK some additional information:
- I am running Backtrack 3 on VMWare, and it says I have an "other Linux 2.6.x kernel"

I hope that helps.
 
Old 07-06-2010, 03:01 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,319

Rep: Reputation: 140Reputation: 140
Backtrack 3 is a specialized linux distribution for network penetration testing. As such, they don't appear to have a well organized ecosystem of software packages available in internet repositories or "repos". I did find this link discussing the installation of kernel source in Backtrack:

http://forums.remote-exploit.org/bac...l-sources.html

which advises to run these commands as root:

# wget http://www.offensive-security.com/kernel.lzm
# lzm2dir kernel.lzm /

You need to have internet connectivity to run the wget command which downloads the kernel source package, kernel.lzm. I have no way of knowing whether that package matches your kernel, however. You may want to try your luck at the Backtrack forum here:

http://www.backtrack-linux.org/forums/
 
Old 07-07-2010, 04:46 PM   #6
doublemac
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I think I love you bro.

It all worked out and you are my hero.
 
Old 01-12-2011, 08:05 PM   #7
ejang
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
same problem with BT4

hey all, i see that the solution worked for BT3. I have BT4, below are my stats:
macbook pro 5,3
uname-a output: Linux bt 2.6.35.8 #1 SMP Sun Nov 14 06:32:36 EST 2010 i686 GNU/Linux
lspci output: 04:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)

I'm trying to follow the tutorial here to get my broadcom wireless driver working, but I am having trouble installing ndiswrapper (ran into the fatal: module not found problem and was not able to find the file required for those solutions... etc.)

so I decided to backtrack (pardon the stupid pun) a bit and install ndiswrapper "the backtrack way"

i followed this tutorial: http://www.backtrack-linux.org/forum...iswrapper.html

except when I try to run the makefile, this is what comes up (error message bolded):
Code:
root@bt:~/ndiswrapper-1.56# make
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.56/driver'
Makefile:34: *** Cannot find kernel version in /usr/src/linux, is it configured?.  Stop.
make[1]: Leaving directory `/root/ndiswrapper-1.56/driver'
make: *** [all] Error 2
unfortunately I think the lzm2dir command is no longer compatible, and i hesitate to do anything BT3-related with my BT4 distro.

Sorry for being a newbie, if there are any non-newbies out there I would really appreciate it.

Thanks!
 
  


Reply

Tags
install, linux, make, ndiswrapper


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
problem installing ndiswrapper - Cannot find kernel version shred_eng Linux - Newbie 4 03-18-2010 05:45 AM
ndiswrapper doesnt like my kernel version jamwaffles Linux - Software 5 03-19-2008 04:34 AM
ndiswrapper and kernel version ucraymond Linux - Wireless Networking 3 12-27-2004 09:11 AM
Ndiswrapper kernel-module version mismatch Ian Linux - Wireless Networking 2 04-07-2004 12:53 PM
Where are sndconfig and isapnp tools located in RHEL3 (ws) kernel version 2.4.21-4 ( k_c_kumar Red Hat 8 02-04-2004 11:57 AM


All times are GMT -5. The time now is 06:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration