LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 04: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, 06:27 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
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, 03: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, 04: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, 05:20 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

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, 05:20 AM   #6
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
It is usually a regular program package - search for the kernel source/kernel headers in Yast.
 
Old 05-25-2005, 07: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, 07:54 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

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, 09: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, 09:55 AM   #10
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

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 09:58 AM.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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