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 10-02-2005, 03:31 PM   #1
nan0click
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
NDIS Wrapper and Ubuntu n00b Question


First let me say that I am a major n00b when it comes to using Linux, and so I figured I should post here because I am having problems with the command "make" when I try to install NDIS Wraper. Here is a post I put in another forum asking for help, and maybe this one will give me the help I seek too.

-------

I have done some searching on google and here about using NDIS Wrapper and Ubuntu. I used the tutorial off of the ubuntu install wiki. I get to the "make" part, and it says:

Code:
make -C driver
make[1]: Entering dierctory `/home/mike/Desktop/ndiswrapper-1.4rc3/driver'
Can't find kernel sources in /lib/modules/2.6.10-5-386/build;
 give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/mike/desktop/ndiswrapper-1.4rc3/driver'
make: *** [all] Error 2
using sudo doesnt fix anything either.

also, in the tutorial, it says to use the command
Code:
ln -s /usr/src/linux-<kernel-version> /lib/modules/VERSION/build
but there is no directory called linux-kernel-version (yes i know its numbers, not the literal word) and there is no folder called build in my /lib/modules/VERSION/ directory

Thank you for all the help you can offer.
 
Old 10-02-2005, 08:12 PM   #2
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
The problem is not with make but with ubuntu. In common witha lot of distros these days it does not routinely copy the source code for the kernel on to your hard drive. Hence the
Quote:
Can't find kernel sources in /lib/modules/2.6.10-5-386/build;
give the path to kernel sources with KSRC=<path> argument to make
problem.

The fix is as easy as firing up synaptic package manager via your graphical desktop and using it to get & install the sources for you...details are in the Ubuntu install howto under 'extras' IIRC but in any case 'install Ubuntu sources' in google should do nicely.
 
Old 10-02-2005, 10:55 PM   #3
nan0click
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I went into synaptic and installed the Linux-Header-etc files and then tried the command using what I think was the appropriate directories

ln -s /usr/src/linux-headers-2.6.10-5 /lib/modules/2.6.10-5-386/build

it seemed to go through correctly and make distclean worked i guess, but when I ran "make" it paused than scrolled a lot of stuff and finally stopped and says something about /bash/sh: gcc: command not found, and also it gives me Error 2 and Error 27.

Please contact me on Aim or MSN:

AIM: nan0click

MSN: nan0click at dgsolution dot net
 
Old 10-02-2005, 10:58 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You'll need to install gcc -- apt-get install gcc would do it (or go through Synaptic) similar to how otchie1 told you to install the kernel sources.
 
Old 10-02-2005, 11:03 PM   #5
nan0click
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, that went through fine, and now when I do it, I get a lot of things ending in "Error 2" I think this is bad. If I knew what this meant, maybe that would fix it. It normally follows after saying "leaving directory..." At the end, it says "make: *** [all] Error 2"

thanks for everything so far and I'm looking foward to more help,

nan0click

Last edited by nan0click; 10-03-2005 at 01:10 PM.
 
  


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
NDIS wrapper hates me Iaremonkey Linux - Software 7 08-04-2005 07:54 AM
ndis wrapper acting up ELconkestador Linux - Software 2 02-15-2005 10:31 AM
NDIS Wrapper Help Please FuGeE Linux - Wireless Networking 1 12-11-2004 12:14 PM
NDIS wrapper install jram Linux - Wireless Networking 4 07-22-2004 09:58 PM
ndis wrapper citrus Linux - Hardware 3 01-08-2004 07:10 AM


All times are GMT -5. The time now is 09:56 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