LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-18-2006, 11:36 PM   #1
vital_101
Member
 
Registered: Jul 2005
Location: Mount Pleasant, Michigan
Distribution: Ubuntu Jaunty 9.04
Posts: 82

Rep: Reputation: Disabled
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
 
Old 01-19-2006, 03:49 PM   #2
murffatksig
LQ Newbie
 
Registered: Jun 2004
Location: Atlanta
Distribution: Arch, Fedora
Posts: 11

Rep: Reputation: 0
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.
 
Old 01-19-2006, 03:50 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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?
 
Old 01-19-2006, 05:18 PM   #4
vital_101
Member
 
Registered: Jul 2005
Location: Mount Pleasant, Michigan
Distribution: Ubuntu Jaunty 9.04
Posts: 82

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



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
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
how to integrate driver source into kernel source tree zhchang Linux - Software 5 11-23-2005 12:34 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:29 PM.

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
Open Source Consulting | Domain Registration