LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-24-2005, 05:51 PM   #1
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Rep: Reputation: 15
error when "make"ing stuff


i get the following error

make -C driver
make[1]: Entering directory `/home/Rich/Desktop/ndiswrapper-1.1/ndiswrapper-1.1/driver'
Can't find kernel sources in /lib/modules/2.4.21-183-athlon/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/Rich/Desktop/ndiswrapper-1.1/ndiswrapper-1.1/driver'
make: *** [all] Error 2

when i tried to make ndiswrapper.

have managed to avoid compilation until now, but i really need this to be solved.
 
Old 05-24-2005, 07:27 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
Sounds like you don't have the kernel sources installed. I'd try installing the kernel source package from your distribution and following the instructions in the error message, i.e. adding the parameter "KSRC=/path/to/kernel-sources" onto the end of the make command.
 
Old 05-25-2005, 04:41 AM   #3
LorenzoM
LQ Newbie
 
Registered: May 2005
Location: Schwaebisch Hall, Germany
Distribution: Debian
Posts: 2

Rep: Reputation: 0
kernel-source and kernel-headers are needed to make thinks work !
 
Old 05-25-2005, 05:59 AM   #4
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
OK, so how would i do that? i am using suse 9.0

Sorry for my complete incompetence
 
Old 05-25-2005, 06:20 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Open YaST -> Software -> Install and Remove Software,
select filter 'Search' and type 'kernel'. In the appearing list, select 'kernel-source' and install the package.

If you have updated your kernel via YOU previously, you need to run YOU again, to update the kernel source as well.
 
Old 05-25-2005, 06:20 AM   #6
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 38
It is usually a regular program package - search for the kernel source/kernel headers in Yast.
 
Old 05-25-2005, 08:47 AM   #7
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
ok well i tried searching but it didnt find anything. i tried adding a new source of installation (from ftp.suse.com) but that diddnt work (gave an error)

would it be ok to simply download the rpm and install it on its own?

SuSE 9.X ftp.suse.com/pub/suse/i386/update/9.0/rpm/i586/kernel-source-2.4.21-286.i586.rpm

would be the one i would have i think. i want to know if its alright before i go round to my brothers house with broadband (40 mb is too much for dialup)
 
Old 05-25-2005, 08:54 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Yes, you can certainly download the kernel and install it with rpm or YaST manually. But make sure that the kernel sources have exactly the same version as your binary kernel. The example you gave wouldn't fit.

kernel-source-2.4.21-286.i586.rpm <> /lib/modules/2.4.21-183-athlon
 
Old 05-25-2005, 10:13 AM   #9
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
damn. you sure it wont work?

i cant find "kernel-source-2.4.21-183.i586.rpm" on google
 
Old 05-25-2005, 10:55 AM   #10
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Quote:
damn. you sure it wont work?
Not with the kernel-binary you have installed. But you can update your kernel to k_athlon-2.4.21-286:
ftp://ftp.suse.com/pub/suse/i386/upd...1-286.i586.rpm
and then install these sources. But you need to have both (binary and sources) of the same version.

Try to use a mirror: http://www.novell.com/products/linux...t_mirrors.html

Last edited by abisko00; 05-25-2005 at 10:58 AM.
 
  


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
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 05:51 AM
why use I. I. adcently while "make"ing tuxfood Linux - Newbie 1 12-05-2004 03:05 PM
error running "make" and "arkollonrc"... Toro Linux - Software 1 04-19-2004 01:24 AM
help with "make" error "Missing seperator" hrishikesh Linux - Software 1 07-18-2003 02:40 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 04:31 PM


All times are GMT -5. The time now is 01:04 AM.

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